summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml b/tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml
new file mode 100644
index 0000000000..e0fc62e392
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/switchStatement.5.qml
@@ -0,0 +1,12 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ value: {
+ var value = 0
+ switch (stringProperty) {
+ default:
+ value = value + 1
+ }
+ }
+}
+