summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-06 17:32:33 +0200
committerAraq <rumpf_a@web.de>2019-04-06 17:32:53 +0200
commit6e6a9a721fc039c88851650e4ab989aeff04fc9f (patch)
tree1cbcab26559355e7b7ee4dee87454956661dc5da /tests/destructor
parentfab75fbaf1a2dd94cedfc0b41173edf49b581c6e (diff)
downloadNim-6e6a9a721fc039c88851650e4ab989aeff04fc9f.tar.gz
destructors: we are cooking now
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tgcdestructors.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/destructor/tgcdestructors.nim b/tests/destructor/tgcdestructors.nim
index 4b7f4ccb4..fa778f49d 100644
--- a/tests/destructor/tgcdestructors.nim
+++ b/tests/destructor/tgcdestructors.nim
@@ -3,7 +3,7 @@ discard """
   output: '''hi
 ho
 ha
-7 1'''
+7 7'''
 """
 
 import allocators
@@ -75,7 +75,7 @@ iterator interpolatedFragments*(s: string): tuple[kind: InterpolatedKind,
       break
     i = j
 
-when true:
+proc other =
   let input = "$test{}  $this is ${an{  example}}  "
   let expected = @[(ikVar, "test"), (ikStr, "{}  "), (ikVar, "this"),
                   (ikStr, " is "), (ikExpr, "an{  example}"), (ikStr, "  ")]
@@ -84,6 +84,7 @@ when true:
     doAssert s == expected[i]
     inc i
 
+other()
 
 #echo s
 let (a, d) = allocCounters()