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.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index 5505e30e3b..e5e30e0210 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -248,6 +248,7 @@ private slots:
void unstoredUndefined();
void unusedAttached();
void urlString();
+ void valueTypeArgument();
void valueTypeBehavior();
void valueTypeLists();
void valueTypeProperty();
@@ -4956,6 +4957,18 @@ void tst_QmlCppCodegen::urlString()
QCOMPARE(rootObject->objectName(), QLatin1String("http://dddddd.com"));
}
+void tst_QmlCppCodegen::valueTypeArgument()
+{
+ QTest::ignoreMessage(QtMsgType::QtDebugMsg, "Reading l.i=5");
+
+ QQmlEngine engine;
+ QQmlComponent component(&engine, QUrl(u"qrc:/qt/qml/TestTypes/ValueTypeArgument.qml"_s));
+
+ QVERIFY2(component.isReady(), qPrintable(component.errorString()));
+ QScopedPointer<QObject> rootObject(component.create());
+ QVERIFY(rootObject);
+}
+
void tst_QmlCppCodegen::valueTypeBehavior()
{
QQmlEngine engine;