aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index 39292d9dd8..f8b67ee7fb 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -44,6 +44,7 @@ private slots:
void accessModelMethodFromOutSide();
void aliasLookup();
+ void aliasToAliasResolutionSkipCorruption();
void ambiguousAs();
void ambiguousSignals();
void anchorsFill();
@@ -584,6 +585,16 @@ void tst_QmlCppCodegen::aliasLookup()
QCOMPARE(t.toString(), u"12"_s);
}
+void tst_QmlCppCodegen::aliasToAliasResolutionSkipCorruption()
+{
+ QQmlEngine engine;
+ QUrl url(u"qrc:/qt/qml/TestTypes/aliasToAliasResolutionSkipCorruption.qml"_s);
+ QQmlComponent component(&engine, url);
+ QVERIFY2(!component.isError(), component.errorString().toUtf8());
+ QScopedPointer<QObject> object(component.create());
+ QVERIFY(!object.isNull());
+}
+
void tst_QmlCppCodegen::ambiguousAs()
{
QQmlEngine e;