aboutsummaryrefslogblamecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/dead-code/function-for-return-end-dead
blob: beb504fa29f2b3b8eaf2c1c355bd3bc62be0c28b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                         
                                              
                
                

     
function f/0
  for 1 to 1 as \1
    return
  end for
  "dead code"
end function

# (function (@ 1 0-8) ‘f/0’
#   (.inner
#     (for (@ 2 2-5) ‘1’ ‘1’ (.variable ‘\1’)
#       (.inner
#         (return (@ 3 4-10))
#       )
#     )
#   )
# )
# :5:2–13: warning: statement is unreachable
#    "dead code"
#    ^^^^^^^^^^^
#