aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-09-28 11:15:27 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-09-28 13:36:21 +0000
commit95f8cd5632dcb72ec4fa7910099f210ce5f22078 (patch)
tree14b273e119ed9953523091f6140643f4243c099f /tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml
parent725f7e38ac473668459b25b09d0eb7993dbd9ea2 (diff)
qqmlimport: Use stable_partition instead of stable_sort
We do not actually need to sort the imports list, we just require that all inline component imports come before all other imports. This avoids triggering a MSVC STL debug assertion about the used Compare function not actually creating a strict ordering. Fixes: QTBUG-86989 Change-Id: I381852392545287ec02b186fcb4f33be3ae95b33 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 3eb9ee34c06d54ea21fedd3188c60e536a487b1c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml b/tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml
new file mode 100644
index 0000000000..73cb4cb5b0
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/twoInlineComponents.qml
@@ -0,0 +1,6 @@
+import QtQuick 2.0
+
+Item {
+ component IC1: Item {}
+ component IC2: Item {}
+}