mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 07:17:49 +00:00
Add more tests for unionized sections + fix bugs
Implementing those tests found a few bugs... oops
This commit is contained in:
12
test/link/section-union/no-room.asm
Normal file
12
test/link/section-union/no-room.asm
Normal file
@@ -0,0 +1,12 @@
|
||||
; NB: the error is that there is no room to place the unionized section in,
|
||||
; so RGBASM can't possibly error out.
|
||||
IF !DEF(SECOND)
|
||||
SECTION "bloat", WRAMX[$d000], BANK[2]
|
||||
ds $fe0
|
||||
|
||||
SECTION UNION "test", WRAMX, BANK[2]
|
||||
db
|
||||
ELSE
|
||||
SECTION UNION "test", WRAMX, ALIGN[6]
|
||||
db
|
||||
ENDC
|
||||
Reference in New Issue
Block a user