aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml')
-rw-r--r--tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml b/tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml
new file mode 100644
index 0000000000..366dbf0464
--- /dev/null
+++ b/tests/auto/qml/qqmlbinding/data/nanPropertyToInt.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.11
+
+Item {
+ visible: true
+ width: 320
+ height: 200
+ property int val: other.val
+
+ Rectangle {
+ id: other
+ anchors.fill: parent;
+ property int val: undefined / 2
+ }
+}