diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-07-09 17:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 17:24:23 +0200 |
commit | c38a459582fb4744ce4abcba2d278b48857c0a31 (patch) | |
tree | 588d4f61ae18a8b896f37eb6f4d536e811da9f97 /tests/destructor/tgotoexceptions8.nim | |
parent | 64815f59b277ce03e7dd74d9d42a9058379852ec (diff) | |
download | Nim-c38a459582fb4744ce4abcba2d278b48857c0a31.tar.gz |
fixes #14925 (#14947)
Diffstat (limited to 'tests/destructor/tgotoexceptions8.nim')
-rw-r--r-- | tests/destructor/tgotoexceptions8.nim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/destructor/tgotoexceptions8.nim b/tests/destructor/tgotoexceptions8.nim index e968cdce2..8ed2ed0ba 100644 --- a/tests/destructor/tgotoexceptions8.nim +++ b/tests/destructor/tgotoexceptions8.nim @@ -8,7 +8,8 @@ outer finally msg1 msg2 finally2 -finally1''' +finally1 +true''' cmd: "nim c --gc:arc $file" """ @@ -67,3 +68,9 @@ when true: echo "finally1" nested_finally() + +# bug #14925 +proc test(b: bool) = + echo b + +test(try: true except: false) |