mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-03 00:07:48 +00:00
Prevent RGBLINK from crashing when getting the bank of a constant
This commit is contained in:
2
test/link/bank-const/a.asm
Normal file
2
test/link/bank-const/a.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
CONSTANT equ 0
|
||||
EXPORT CONSTANT
|
||||
2
test/link/bank-const/b.asm
Normal file
2
test/link/bank-const/b.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
SECTION "Test", ROM0[0]
|
||||
db BANK(CONSTANT)
|
||||
2
test/link/bank-const/err.out
Normal file
2
test/link/bank-const/err.out
Normal file
@@ -0,0 +1,2 @@
|
||||
error: bank-const/b.asm(2): Requested BANK() of non-label symbol "CONSTANT"
|
||||
Linking failed with 1 error
|
||||
Reference in New Issue
Block a user