aboutsummaryrefslogblamecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/dead-code/for-if-continue-else-continue-end-dead
blob: e817aa92d67f63e03bfd4c2ef4ad47bd38a627f3 (plain) (tree)




















                                                     
                                              
                              
                              

     
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–27: warning: statement is unreachable
#    <dead code> : "dead code"
#    ^^^^^^^^^^^^^^^^^^^^^^^^^
#