gc:destructors: progress

This commit is contained in:
Andreas Rumpf 2019-02-21 12:19:06 +01:00
commit 417d27c544
3 changed files with 16 additions and 10 deletions

View file

@ -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)