summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorRuslan Mustakov <endragor@users.noreply.github.com>2017-03-22 07:06:05 +0700
committerAndreas Rumpf <rumpf_a@web.de>2017-03-22 01:06:05 +0100
commit310b73b556957228c805df321d7a8c03d9bd2061 (patch)
tree2224459333f79ad42d15295279d52f969e7b4b0b /tests/stdlib
parentc8954b2b34becebb09a3c69181094fb42f696bec (diff)
downloadNim-310b73b556957228c805df321d7a8c03d9bd2061.tar.gz
Reduce the scope of stackTrace var (#5583)
Fixes #5571.
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tunittest.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stdlib/tunittest.nim b/tests/stdlib/tunittest.nim
index 3f8601323..674ce50dd 100644
--- a/tests/stdlib/tunittest.nim
+++ b/tests/stdlib/tunittest.nim
@@ -96,5 +96,12 @@ suite "bug #4494":
       check:
         allIt(0..3, tags[it] != tags[it + 1])
 
+suite "bug #5571":
+  test "can define gcsafe procs within tests":
+    proc doTest {.gcsafe.} =
+      let line = "a"
+      check: line == "a"
+    doTest()
+
 static:
   echo "compile end"