mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add test case for FOR loop variable reusing an existing one
This commit is contained in:
13
test/asm/for-loop-variable.asm
Normal file
13
test/asm/for-loop-variable.asm
Normal file
@@ -0,0 +1,13 @@
|
||||
def x = 4
|
||||
for x, x
|
||||
def x *= 2
|
||||
println x
|
||||
endr
|
||||
println x
|
||||
|
||||
def y equ 5
|
||||
for y, y
|
||||
def y *= 3
|
||||
println y
|
||||
endr
|
||||
println y
|
||||
Reference in New Issue
Block a user