Added nested calls test
This commit is contained in:
parent
78ddfa6dbc
commit
881cb0a81c
4 changed files with 13 additions and 9 deletions
|
@ -1,7 +0,0 @@
|
|||
main() {
|
||||
syscall(60, f(1) + f(2) + f(3))
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x + 1
|
||||
}
|
11
tests/programs/nested-calls.q
Normal file
11
tests/programs/nested-calls.q
Normal file
|
@ -0,0 +1,11 @@
|
|||
main() {
|
||||
exit(f(f(f(1))))
|
||||
}
|
||||
|
||||
exit(code) {
|
||||
syscall(60, code)
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x + 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue