summary refs log blame commit diff stats
path: root/tests/destructor/tgotoexceptions6.nim
blob: 7c01f6a52bb5724b9c53b1288888e59c2a978971 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                      
discard """
  cmd: "nim c --gc:arc --exceptions:goto $file"
  outputsub: "Error: unhandled exception: virus detected [ValueError]"
  exitcode: "1"
"""

# bug #13436
proc foo =
  raise newException(ValueError, "virus detected")
foo()