got rid of 'accept' dir in the tests

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

23
tests/run/tovfint.nim Executable file
View file

@ -0,0 +1,23 @@
discard """
file: "tovfint.nim"
output: "works!"
"""
# this tests the new overflow literals
var
i: int
i = int(0xffffffff)
when defined(cpu64):
if i == 4294967295:
write(stdout, "works!\n")
else:
write(stdout, "broken!\n")
else:
if i == -1:
write(stdout, "works!\n")
else:
write(stdout, "broken!\n")
#OUT works!