summary refs log tree commit diff stats
path: root/tests/destructor/tgotoexceptions8.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-09 17:24:23 +0200
committerGitHub <noreply@github.com>2020-07-09 17:24:23 +0200
commitc38a459582fb4744ce4abcba2d278b48857c0a31 (patch)
tree588d4f61ae18a8b896f37eb6f4d536e811da9f97 /tests/destructor/tgotoexceptions8.nim
parent64815f59b277ce03e7dd74d9d42a9058379852ec (diff)
downloadNim-c38a459582fb4744ce4abcba2d278b48857c0a31.tar.gz
fixes #14925 (#14947)
Diffstat (limited to 'tests/destructor/tgotoexceptions8.nim')
-rw-r--r--tests/destructor/tgotoexceptions8.nim9
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)