Add testcase for #14864 (#14928)

* Add testcase for #14864

* :D
This commit is contained in:
Clyybber
2020-07-07 22:43:36 +02:00
committed by GitHub
parent 25ceacbe4f
commit 8480bef1c4
3 changed files with 13 additions and 0 deletions

4
tests/arc/bmodule.nim Normal file
View File

@@ -0,0 +1,4 @@
import cmodule
for i in @[1, 2, 3].cycle():
echo i

4
tests/arc/cmodule.nim Normal file
View File

@@ -0,0 +1,4 @@
iterator cycle*[T](s: openArray[T]): T =
let s = @s
for x in s:
yield x

5
tests/arc/t14864.nim Normal file
View File

@@ -0,0 +1,5 @@
discard """
cmd: "nim c --gc:arc $file"
"""
import bmodule