Fixed incorrect register move
This commit is contained in:
parent
c9850cf678
commit
8766a4ef1a
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