summary refs log tree commit diff stats
path: root/tests/destructor/tgcdestructors.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/destructor/tgcdestructors.nim')
-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)