aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/if-else-break
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-01 20:26:07 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-01 20:26:07 +0100
commitff1b90a4f4aec4d374261adda460ddc1d83c5ddd (patch)
tree356865160bad344c8c19b9c1d115d7574f75e005 /test-files/mds-kbdc/validate-tree/invalid/if-else-break
parentmds-kbdc: add some test cases + fix issued with inclusion (diff)
downloadmds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.gz
mds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.bz2
mds-ff1b90a4f4aec4d374261adda460ddc1d83c5ddd.tar.xz
mds-kbdc: m + more test cases
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test-files/mds-kbdc/validate-tree/invalid/if-else-break')
-rw-r--r--test-files/mds-kbdc/validate-tree/invalid/if-else-break22
1 files changed, 22 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/validate-tree/invalid/if-else-break b/test-files/mds-kbdc/validate-tree/invalid/if-else-break
new file mode 100644
index 0000000..0e8ae81
--- /dev/null
+++ b/test-files/mds-kbdc/validate-tree/invalid/if-else-break
@@ -0,0 +1,22 @@
+if 1
+ if 0
+ else
+ break
+ end if
+end if
+
+# (if (@ 1 0-2) ‘1’
+# (.inner
+# (if (@ 2 2-4) ‘0’
+# (.inner nil)
+# (.otherwise
+# (break (@ 4 4-9))
+# )
+# )
+# )
+# (.otherwise nil)
+# )
+# :4:4–9: error: ‘break’ outside ‘for’
+# break
+# ^^^^^
+