mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
Implement -Wunmatched-directive
This commit is contained in:
@@ -3,3 +3,4 @@ SECTION "This is invalid", ROM0
|
||||
PUSHS
|
||||
; We should be outside of section scope now
|
||||
db 69
|
||||
POPS
|
||||
|
||||
4
test/asm/unmatched-directive.asm
Normal file
4
test/asm/unmatched-directive.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
SECTION "test", ROM0
|
||||
PUSHC
|
||||
PUSHO
|
||||
PUSHS
|
||||
6
test/asm/unmatched-directive.err
Normal file
6
test/asm/unmatched-directive.err
Normal file
@@ -0,0 +1,6 @@
|
||||
warning: unmatched-directive.asm(5): [-Wunmatched-directive]
|
||||
`PUSHC` without corresponding `POPC`
|
||||
warning: unmatched-directive.asm(5): [-Wunmatched-directive]
|
||||
`PUSHO` without corresponding `POPO`
|
||||
warning: unmatched-directive.asm(5): [-Wunmatched-directive]
|
||||
`PUSHS` without corresponding `POPS`
|
||||
Reference in New Issue
Block a user