Implemented negative numbers

This commit is contained in:
2024-07-27 17:48:03 +02:00
parent 944bacf4e1
commit 6861ae9a90
4 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,5 @@
main() {
a := -32
b := 64
syscall(60, a + b)
}

View File

@ -42,6 +42,7 @@ var programs = []struct {
{"loop", "", "", 0},
{"loop-lifetime", "", "", 0},
{"assert", "", "", 1},
{"negative", "", "", 32},
}
func TestPrograms(t *testing.T) {