mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Cannot start a new section that's already on the stack
This is only relevant for FRAGMENT or UNION sections, since normal ones would fail with "Section already defined previously". Fixes #730
This commit is contained in:
7
test/asm/new-pushed-section.asm
Normal file
7
test/asm/new-pushed-section.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
SECTION FRAGMENT "A", ROM0
|
||||
db 1
|
||||
PUSHS
|
||||
SECTION FRAGMENT "A", ROM0
|
||||
db 2
|
||||
POPS
|
||||
db 3
|
||||
2
test/asm/new-pushed-section.err
Normal file
2
test/asm/new-pushed-section.err
Normal file
@@ -0,0 +1,2 @@
|
||||
FATAL: new-pushed-section.asm(4):
|
||||
Section 'A' is already on the stack
|
||||
0
test/asm/new-pushed-section.out
Normal file
0
test/asm/new-pushed-section.out
Normal file
Reference in New Issue
Block a user