Added more tests

This commit is contained in:
Eduard Urbach 2024-07-31 15:24:21 +02:00
parent 76c916018a
commit 3d245a15f9
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
6 changed files with 52 additions and 8 deletions

12
tests/programs/64-bit.q Normal file
View file

@ -0,0 +1,12 @@
main() {
x := 20000000000
assert x == 20000000000
x -= 10000000000
assert x == 10000000000
x -= 10000000000
assert x == 0
x -= 10000000000
assert x == -10000000000
x -= 10000000000
assert x == -20000000000
}