This commit is contained in:
Andreas Rumpf 2020-03-10 00:52:46 +01:00 • committed by GitHub
commit 090ba1e3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 4 deletions

View 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()