start of tests refactoring; sqlite3 new wrapper fixes
This commit is contained in:
parent
6bc16904ed
commit
d913fdb280
173 changed files with 206 additions and 238 deletions
17
tests/accept/run/tovfint.nim
Normal file
17
tests/accept/run/tovfint.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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!
|
||||
Loading…
Add table
Add a link
Reference in a new issue