Initial import

This commit is contained in:
Andreas Rumpf 2008-06-22 16:14:11 +02:00
commit 405b86068e
324 changed files with 163599 additions and 0 deletions

20
tests/tovfint.nim Executable file
View file

@ -0,0 +1,20 @@
# this tests the new overflow literals
import
io
var
i: int
i = cast[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!