Fixed incorrect register move
This commit is contained in:
parent
34d865986a
commit
b1f0d20394
12 changed files with 38 additions and 31 deletions
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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue