Implemented negative numbers
This commit is contained in:
5
tests/programs/negative.q
Normal file
5
tests/programs/negative.q
Normal file
@ -0,0 +1,5 @@
|
||||
main() {
|
||||
a := -32
|
||||
b := 64
|
||||
syscall(60, a + b)
|
||||
}
|
@ -42,6 +42,7 @@ var programs = []struct {
|
||||
{"loop", "", "", 0},
|
||||
{"loop-lifetime", "", "", 0},
|
||||
{"assert", "", "", 1},
|
||||
{"negative", "", "", 32},
|
||||
}
|
||||
|
||||
func TestPrograms(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user