Fixed incorrect register move
This commit is contained in:
9
tests/programs/op-assign.q
Normal file
9
tests/programs/op-assign.q
Normal file
@ -0,0 +1,9 @@
|
||||
main() {
|
||||
f(10)
|
||||
}
|
||||
|
||||
f(new) {
|
||||
old := new
|
||||
new -= 1
|
||||
assert new != old
|
||||
}
|
@ -26,6 +26,7 @@ var programs = []struct {
|
||||
{"return", "", "", 0},
|
||||
{"math", "", "", 0},
|
||||
{"precedence", "", "", 0},
|
||||
{"op-assign", "", "", 0},
|
||||
{"binary", "", "", 0},
|
||||
{"octal", "", "", 0},
|
||||
{"hexadecimal", "", "", 0},
|
||||
|
Reference in New Issue
Block a user