mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add a test case for overlapping IF/ENDC and REPT/ENDR
This trips an asserton in the Rust rewrite because of its different conditional stack design
This commit is contained in:
4
test/asm/misleading-indentation.asm
Normal file
4
test/asm/misleading-indentation.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
IF 1
|
||||
REPT 1
|
||||
ENDC ; misleading indentation!
|
||||
ENDR
|
||||
2
test/asm/misleading-indentation.err
Normal file
2
test/asm/misleading-indentation.err
Normal file
@@ -0,0 +1,2 @@
|
||||
FATAL: Found `ENDC` outside of a conditional (not after an `IF`/`ELIF`/`ELSE` block)
|
||||
at misleading-indentation.asm::REPT~1(3) <- misleading-indentation.asm(2)
|
||||
Reference in New Issue
Block a user