Added more tests

This commit is contained in:
Eduard Urbach 2024-07-09 10:39:29 +02:00
parent 5cbc3315a7
commit 4a7bb9500a
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 8 additions and 0 deletions

7
tests/programs/reuse.q Normal file
View File

@ -0,0 +1,7 @@
main() {
syscall(60, f(1))
}
f(x) {
return x + 1 + x
}

View File

@ -22,6 +22,7 @@ var programs = []struct {
{"chained-calls.q", "", 9},
{"nested-calls.q", "", 4},
{"parameters.q", "", 3},
{"reuse.q", "", 3},
{"return.q", "", 6},
{"reassign.q", "", 2},
{"branch.q", "", 0},