aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml b/tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml
new file mode 100644
index 0000000000..86a2568b21
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml
@@ -0,0 +1,18 @@
+import QtQuick
+
+Item {
+ function wait(timeout) {
+ if (timeout === undefined)
+ timeout = 5000
+
+ var i = 0;
+ while (i < timeout) {
+ i += 50
+ }
+
+ return i
+ }
+
+ property var a: wait(10)
+ property var b: wait()
+}