summary refs log tree commit diff stats
path: root/tests/arc/tnewseq_legacy.nim
blob: 4730d2c2ba489f3550f18ca51ac48b11cc8ea607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
  output: "(allocCount: 201, deallocCount: 201)"
  cmd: "nim c --gc:orc -d:nimAllocStats $file"
"""

proc main(prefix: string) =
  var c: seq[string]
  for i in 0..<100:
    newSeq(c, 100)
    c[i] = prefix & $i

main("abc")
echo getAllocStats()