mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 04:22:07 +00:00
Fix local sym names not being expanded by PURGE
And an additional bug that broke the attached test
This commit is contained in:
8
test/asm/local-purge.asm
Normal file
8
test/asm/local-purge.asm
Normal file
@@ -0,0 +1,8 @@
|
||||
; At some point, the name of the local label was passed *unexpanded* to the
|
||||
; function doing the removal. Ensure that this is fixed.
|
||||
|
||||
SECTION "Test", ROM0[0]
|
||||
Glob:
|
||||
.loc
|
||||
PURGE .loc
|
||||
PRINTT "{.loc}\n" ; This should fail because the label doesn't exist anymore
|
||||
3
test/asm/local-purge.err
Normal file
3
test/asm/local-purge.err
Normal file
@@ -0,0 +1,3 @@
|
||||
ERROR: local-purge.asm(8):
|
||||
'.loc' not defined
|
||||
error: Assembly aborted (1 errors)!
|
||||
1
test/asm/local-purge.out
Normal file
1
test/asm/local-purge.out
Normal file
@@ -0,0 +1 @@
|
||||
$0
|
||||
Reference in New Issue
Block a user