summary refs log blame commit diff stats
path: root/tests/arc/timportedobj.nim
blob: 9a88a9468422f5fdb9fa7d52e4dcc605634aa76b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                             
discard """
  cmd: "nim c --gc:arc $file"
  action: "compile"
"""

# bug #13269

import posix
proc foo*() =
  var last = newSeq[Stat]()
  var next = last
  for i in 0..3:
    last = next
foo()