summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-21 12:19:06 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-21 12:19:06 +0100
commit417d27c54406ac29ab00ac0b459aa7546af4b83a (patch)
treee346a018a1e3ee436efa0e645ee9c51e0bc105ee /tests/destructor
parentf2f0b5d695fbde2f9a8537b30e8422b22416ddbe (diff)
downloadNim-417d27c54406ac29ab00ac0b459aa7546af4b83a.tar.gz
gc:destructors: progress
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tgcdestructors.nim11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/destructor/tgcdestructors.nim b/tests/destructor/tgcdestructors.nim
index 60d7fc14f..1ae2b2549 100644
--- a/tests/destructor/tgcdestructors.nim
+++ b/tests/destructor/tgcdestructors.nim
@@ -1,6 +1,9 @@
 discard """
   cmd: '''nim c --gc:destructors $file'''
-  output: '''1 1'''
+  output: '''hi
+ho
+ha
+1 1'''
 """
 
 import allocators
@@ -12,6 +15,12 @@ proc main =
 
 main()
 
+const
+  test = @["hi", "ho", "ha"]
+
+for t in test:
+  echo t
+
 #echo s
 let (a, d) = allocCounters()
 cprintf("%ld %ld\n", a, d)