Removed incorrect optimization
This commit is contained in:
parent
8f9481c548
commit
a9f305dec2
7 changed files with 16 additions and 38 deletions
6
tests/programs/reassign.q
Normal file
6
tests/programs/reassign.q
Normal file
|
@ -0,0 +1,6 @@
|
|||
main() {
|
||||
x := 1
|
||||
y := x + 1
|
||||
x = 2
|
||||
syscall(60, y)
|
||||
}
|
|
@ -22,6 +22,7 @@ var programs = []struct {
|
|||
{"chained-calls.q", "", 9},
|
||||
{"nested-calls.q", "", 4},
|
||||
{"return.q", "", 6},
|
||||
{"reassign.q", "", 2},
|
||||
}
|
||||
|
||||
func TestPrograms(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue