aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/if-else-break
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
+# ^^^^^
+