Added more tests
This commit is contained in:
parent
5cbc3315a7
commit
4a7bb9500a
7
tests/programs/reuse.q
Normal file
7
tests/programs/reuse.q
Normal file
@ -0,0 +1,7 @@
|
||||
main() {
|
||||
syscall(60, f(1))
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x + 1 + x
|
||||
}
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user