Improved code generation
This commit is contained in:
parent
75672c1e16
commit
0a661b4345
9 changed files with 70 additions and 23 deletions
11
tests/programs/exit.q
Normal file
11
tests/programs/exit.q
Normal file
|
@ -0,0 +1,11 @@
|
|||
main() {
|
||||
exit(f(1) + f(2) + f(3))
|
||||
}
|
||||
|
||||
exit(code) {
|
||||
syscall(60, code)
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return x + 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue