summary refs log tree commit diff stats
path: root/tests/titer2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/titer2.nim')
-rwxr-xr-xtests/titer2.nim10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/titer2.nim b/tests/titer2.nim
deleted file mode 100755
index b9cdb53fe..000000000
--- a/tests/titer2.nim
+++ /dev/null
@@ -1,10 +0,0 @@
-# Try to break the transformation pass:
-iterator iterAndZero(a: var openArray[int]): int =
-  for i in 0..len(a)-1:
-    yield a[i]
-    a[i] = 0
-
-var x = [[1, 2, 3], [4, 5, 6]]
-for y in iterAndZero(x[0]): write(stdout, $y)
-#OUT 123
-