mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
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
This commit is contained in:
23
test/asm/invalid-alignment.asm
Normal file
23
test/asm/invalid-alignment.asm
Normal file
@@ -0,0 +1,23 @@
|
||||
; valid
|
||||
|
||||
SECTION "valid", ROM0
|
||||
align 16 ; this is achievable at $0000
|
||||
|
||||
; invalid
|
||||
|
||||
SECTION "invalid", ROMX[$4000]
|
||||
align 16
|
||||
|
||||
SECTION "a", ROMX[$4000], ALIGN[20]
|
||||
|
||||
SECTION FRAGMENT "b", ROM0[$0000], ALIGN[20]
|
||||
|
||||
SECTION UNION "c", WRAM0[$c000], ALIGN[20]
|
||||
|
||||
; unattainable
|
||||
|
||||
SECTION "d", HRAM[$ff80], ALIGN[10]
|
||||
|
||||
SECTION FRAGMENT "e", ROMX[$4000], ALIGN[15]
|
||||
|
||||
SECTION UNION "f", WRAM0[$c000], ALIGN[15]
|
||||
Reference in New Issue
Block a user