Improved code generation
This commit is contained in:
parent
a80f971e8a
commit
28fc6d2af6
4 changed files with 12 additions and 41 deletions
11
tests/programs/return.q
Normal file
11
tests/programs/return.q
Normal file
|
@ -0,0 +1,11 @@
|
|||
main() {
|
||||
syscall(60, f(2))
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x + 1 + g(x)
|
||||
}
|
||||
|
||||
g(x) {
|
||||
return x + 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue