Add tests for explicit definitions of local labels

These check that “Parent.child” may be used in place of “.child”, and that “WrongParent.child” may not be used in the scope of “Parent”.
This commit is contained in:
Ben10do committed 2017-06-12 19:50:02 +01:00
1 parent 2e60c4dd2e
commit a53d795361
4 files changed
+16

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
SECTION "sec", ROM0
Parent:
db 0
WrongParent.child
db 0
+3
View File
@@ -0,0 +1,3 @@
ERROR: local-wrong-parent.asm(5):
Not currently in the scope of 'WrongParent'
error: Assembly aborted in pass 1 (1 errors)!
+7
View File
@@ -0,0 +1,7 @@
SECTION "sec", ROM0
Parent:
Parent.child::
db 0
NotParent:
dw Parent.child
View File
Whitespace-only changes.