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:
Rangi42
2025-09-25 11:39:49 -04:00
committed by Rangi
parent 0670c03bc2
commit 96b953fe51
4 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
IF 1
REPT 1
ENDC ; misleading indentation!
ENDR

View 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)