Fixed incorrect register move

This commit is contained in:
Eduard Urbach 2024-08-02 12:55:25 +02:00
parent c9850cf678
commit 8766a4ef1a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 38 additions and 31 deletions

View file

@ -0,0 +1,9 @@
main() {
f(10)
}
f(new) {
old := new
new -= 1
assert new != old
}

View file

@ -26,6 +26,7 @@ var programs = []struct {
{"return", "", "", 0},
{"math", "", "", 0},
{"precedence", "", "", 0},
{"op-assign", "", "", 0},
{"binary", "", "", 0},
{"octal", "", "", 0},
{"hexadecimal", "", "", 0},