aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-08-09 15:40:24 +0200
committerUlf Hermann <ulf.hermann@qt.io>2024-08-12 16:19:40 +0200
commit9f554ef8cf19e9c30c1ba9d37d9579239a5aab87 (patch)
tree869fd695f26bc9c64e493d68ee8583f7836f2a04 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parent7c404391c3971a7d20a6a64f25a7c89d65fab9db (diff)
QmlCompiler: Do not choose unstorable stored types
In order to pass the argument to a value type ctor we need to store it in something we can rely on. Amends commmit dd731b880b4bfbe7bad7b0b4d1ac3b72503c0071 Change-Id: I5d1ef6b4611aad9b595235f4f874ef4a063f04c6 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index c456376cfe..888bb098e5 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -3504,6 +3504,7 @@ void tst_QmlCppCodegen::multipleCtors()
QCOMPARE(o->property("wr").value<ValueTypeWithLength>().length(), 3);
QCOMPARE(o->property("wp").value<ValueTypeWithLength>().length(), 11);
QCOMPARE(o->property("wi").value<ValueTypeWithLength>().length(), 17);
+ QCOMPARE(o->property("wo").value<ValueTypeWithLength>().length(), -4);
}
void tst_QmlCppCodegen::namespaceWithEnum()