Files
rgbds/test/asm/anon-label-bad.asm
Rangi 6132b77c1e Add more tests for RGBASM code coverage (#1257)
* Add more tests for RGBASM code coverage

* Use C++ unnamed parameters, not `(void)` casting

* Fix crash in `sect_AlignPC` from #1253
2023-12-01 10:21:43 -05:00

23 lines
376 B
NASM

: ; Outside of section
SECTION "Anonymous label errors test", ROM0
db :-- ; Reference goes too far back
: ; Can't EXPORT or PURGE anonymous labels
EXPORT :-
PURGE :-
; Uncomment this if you're a badass with a *lot* of RAM
; REPT 2147483647
; :
; ENDR
; REPT 2147483647
; :
; ENDR
; db :+ ; OK
; db :++ ; Reference goes too far
:: ; Syntax error, can't export this