Implemented negation
This commit is contained in:
parent
c2f6aa1a08
commit
4ded8260b3
11 changed files with 136 additions and 21 deletions
7
tests/programs/negation.q
Normal file
7
tests/programs/negation.q
Normal file
|
@ -0,0 +1,7 @@
|
|||
main() {
|
||||
syscall(60, f(-32))
|
||||
}
|
||||
|
||||
f(x) {
|
||||
return -x
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue