gc:destructors: progress
This commit is contained in:
parent
f2f0b5d695
commit
417d27c544
3 changed files with 16 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue