diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2025-11-03 12:47:32 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2025-11-05 19:47:45 +0100 |
| commit | 3179d424b8d3a3453bc946a69d37c05c2e55ff60 (patch) | |
| tree | 5ca3c2f85fd45654dbc87aa98f57a06e8a1a56f0 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | c2948ab0d63184feb0c38e7a0d11b3dfde9268e9 (diff) | |
QtQml: Fix marking of values on AOT stack
We need to pop the value that's being processed before we push further
values.
Amends commit 2d016a2653c59f10a57dc1903b817f71d16d0622.
Fixes: QTBUG-141646
Pick-to: 6.10 6.8
Change-Id: I92c69d612891d4360d83348c4df707389dda582a
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index e970679c51..d4dc441a0e 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -1165,6 +1165,13 @@ void tst_QmlCppCodegen::collectGarbageDuringAotCode() QCOMPARE(inner->objectName(), u"dynamic"_s); QCOMPARE(o->property("gcRun").toInt(), 1); + + QQmlComponent c2(&engine, QUrl(u"qrc:/qt/qml/TestTypes/markRecursive.qml"_s)); + QVERIFY2(c2.isReady(), qPrintable(c2.errorString())); + QScopedPointer<QObject> o2(c2.create()); + QVERIFY(!o2.isNull()); + + QTRY_COMPARE_GT(o2->objectName().toInt(), 10); } void tst_QmlCppCodegen::colorAsVariant() |
