summary refs log blame commit diff stats
path: root/tests/ccgbugs/tmissingvolatile.nim
blob: d61778ed4009eb1ccf3c5f291369fd8442bf7afe (plain) (tree)
1
2
3
4


                                                    
                                     















                                       
discard """
  output: "1"
  cmd: r"nim c --hints:on $options -d:release $file"
  ccodecheck: "'NI volatile state0;'"
"""

# bug #1539

proc err() =
  raise newException(Exception, "test")

proc main() =
  var state: int
  try:
    state = 1
    err()
  except:
    echo state

main()