got rid of 'accept' dir in the tests

This commit is contained in:
Araq
2011-11-19 15:45:51 +01:00
parent d0772feb08
commit a274f3bf5b
264 changed files with 5 additions and 7 deletions

16
tests/run/titervaropenarray.nim Executable file
View File

@@ -0,0 +1,16 @@
discard """
file: "titer2.nim"
output: "123"
"""
# 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