aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-03-10 12:19:59 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-03-10 12:19:59 +0100
commite798058823d6b3b813807151b91ee7d4c9417c3e (patch)
treea77487803177ea40775343e87b1ede3e521f0194 /tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml
parent56993597c05545922bbb2ef7aed49e7e34ac06b9 (diff)
parent473663128eaaf1c92ada255ac6ef1101c8bda790 (diff)
Merge remote-tracking branch 'origin/dev' into iosstyle
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml b/tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml
new file mode 100644
index 0000000000..1765bfcab9
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/functionTakingVar.qml
@@ -0,0 +1,11 @@
+pragma Strict
+import QtQml
+
+QtObject {
+ property var c;
+
+ function a(b: var) {
+ c = b;
+ }
+
+}