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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue