summary refs log tree commit diff stats
path: root/tests/arc/timportedobj.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arc/timportedobj.nim')
-rw-r--r--tests/arc/timportedobj.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/arc/timportedobj.nim b/tests/arc/timportedobj.nim
new file mode 100644
index 000000000..9a88a9468
--- /dev/null
+++ b/tests/arc/timportedobj.nim
@@ -0,0 +1,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()