parent
7d07897a99
commit
090ba1e3a3
3 changed files with 21 additions and 4 deletions
10
tests/destructor/tgotoexceptions6.nim
Normal file
10
tests/destructor/tgotoexceptions6.nim
Normal file
|
|
@ -0,0 +1,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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue