diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-03-10 00:52:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 00:52:46 +0100 |
commit | 090ba1e3a390e9997f45001e18dc93ba7aa091c3 (patch) | |
tree | aa21753396c77ebd4365797877da1f1767be7af8 /tests/destructor | |
parent | 7d07897a9941717432d5872c3e0f203704902738 (diff) | |
download | Nim-090ba1e3a390e9997f45001e18dc93ba7aa091c3.tar.gz |
fixes #13436 (#13615)
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/tgotoexceptions6.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/destructor/tgotoexceptions6.nim b/tests/destructor/tgotoexceptions6.nim new file mode 100644 index 000000000..7c01f6a52 --- /dev/null +++ b/tests/destructor/tgotoexceptions6.nim @@ -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() |