aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead
blob: 108c7b0d0d4190d0397130be3a6538bfd9438530 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"
#