aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead
diff options
context:
space:
mode:
Diffstat (limited to 'test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead')
-rw-r--r--test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead25
1 files changed, 25 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead b/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead
new file mode 100644
index 0000000..108c7b0
--- /dev/null
+++ b/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead
@@ -0,0 +1,25 @@
+for 1 to 2 as \1
+ if 1
+ continue
+ else
+ continue
+ end if
+ <dead code> : "dead code"
+end for
+
+# (for (@ 1 0-3) ‘1’ ‘2’ (.variable ‘\1’)
+# (.inner
+# (if (@ 2 2-4) ‘1’
+# (.inner
+# (continue (@ 3 4-12))
+# )
+# (.otherwise
+# (continue (@ 5 4-12))
+# )
+# )
+# )
+# )
+# :7:2–2: warning: statement is unreachable
+# <dead code> : "dead code"
+#
+