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
|
||||
}
|
|
@ -43,6 +43,7 @@ var programs = []struct {
|
|||
{"loop-lifetime", "", "", 0},
|
||||
{"assert", "", "", 1},
|
||||
{"negative", "", "", 32},
|
||||
{"negation", "", "", 32},
|
||||
}
|
||||
|
||||
func TestPrograms(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue