Add test for referencing a symbol before setting it

This commit is contained in:
dbrotz
2019-05-09 14:46:11 -07:00
parent 249acace08
commit f927c41abb
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
SECTION "sec", ROM0
db X
X = 2

View File

@@ -0,0 +1,3 @@
ERROR: reference-undefined-sym.asm(4):
'X' already referenced at reference-undefined-sym.asm(2)
error: Assembly aborted (1 errors)!