diff options
author | cooldome <cdome@bk.ru> | 2020-05-11 22:11:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 23:11:20 +0200 |
commit | a39123c93c9d2976300f1b8eba09d40b16f1c46c (patch) | |
tree | 8b0018344eb133642d0dd57e57e9128704b3429b /tests/arc | |
parent | 86669ef5b4c9711d81e961c2f68a05aa4f4d9ece (diff) | |
download | Nim-a39123c93c9d2976300f1b8eba09d40b16f1c46c.tar.gz |
fix #14219 (#14225)
Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'tests/arc')
-rw-r--r-- | tests/arc/amodule.nim | 10 | ||||
-rw-r--r-- | tests/arc/tamodule.nim | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/arc/amodule.nim b/tests/arc/amodule.nim new file mode 100644 index 000000000..e853d0a77 --- /dev/null +++ b/tests/arc/amodule.nim @@ -0,0 +1,10 @@ +var vectors = @["a", "b", "c", "d", "e"] + +iterator testVectors(): string = + for vector in vectors: + yield vector + +var r = "" +for item in testVectors(): + r.add item +echo r \ No newline at end of file diff --git a/tests/arc/tamodule.nim b/tests/arc/tamodule.nim new file mode 100644 index 000000000..ac9757bd7 --- /dev/null +++ b/tests/arc/tamodule.nim @@ -0,0 +1,6 @@ +discard """ + output: "abcde" + cmd: "nim c --gc:arc $file" +""" + +import amodule |