mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Merge pull request #605 from NieDzejkob/invalid-labels
Don't consider difference of invalid labels constant
This commit is contained in:
3
test/asm/use-label-outside-section.asm
Normal file
3
test/asm/use-label-outside-section.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
lab:
|
||||
PRINTV lab-lab
|
||||
PRINTT "\n"
|
||||
5
test/asm/use-label-outside-section.err
Normal file
5
test/asm/use-label-outside-section.err
Normal file
@@ -0,0 +1,5 @@
|
||||
ERROR: use-label-outside-section.asm(1):
|
||||
Label "lab" created outside of a SECTION
|
||||
ERROR: use-label-outside-section.asm(2):
|
||||
Expected constant expression: 'lab' is not constant at assembly time
|
||||
error: Assembly aborted (2 errors)!
|
||||
1
test/asm/use-label-outside-section.out
Normal file
1
test/asm/use-label-outside-section.out
Normal file
@@ -0,0 +1 @@
|
||||
$0
|
||||
Reference in New Issue
Block a user