Added operator precedence test

This commit is contained in:
Eduard Urbach 2024-07-05 10:10:09 +02:00
parent 62057704f3
commit c13a70c958
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,5 @@
main() {
x := 2
y := 3
syscall(60, (x + y + (x + y) * (x + y)) / x / y + x + y)
}

View File

@ -16,9 +16,10 @@ var programs = []struct {
ExpectedExitCode int
}{
{"empty.q", "", 0},
{"square-sum.q", "", 25},
{"multi-calls.q", "", 9},
{"exit.q", "", 9},
{"precedence.q", "", 10},
{"register-overlap.q", "", 9},
{"square-sum.q", "", 25},
}
func TestPrograms(t *testing.T) {