Added more tests

This commit is contained in:
Eduard Urbach 2024-07-06 13:06:39 +02:00
parent cc66b02bf8
commit 8f9481c548
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
5 changed files with 15 additions and 11 deletions

12
tests/programs/math.q Normal file
View file

@ -0,0 +1,12 @@
main() {
x := 1000
syscall(60, div10(x) / 10 + div(x, 100) * 4 - 40 - x + x)
}
div(x, y) {
return x / y
}
div10(x) {
return x / 10
}