summary refs log tree commit diff stats
path: root/tests/arc/cmodule.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arc/cmodule.nim')
-rw-r--r--tests/arc/cmodule.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/arc/cmodule.nim b/tests/arc/cmodule.nim
new file mode 100644
index 000000000..6c6e6c0fa
--- /dev/null
+++ b/tests/arc/cmodule.nim
@@ -0,0 +1,4 @@
+iterator cycle*[T](s: openArray[T]): T =
+  let s = @s
+  for x in s:
+    yield x