-Wexport-undefined warning for exporting undefined symbols

This commit is contained in:
Rangi42
2025-08-24 16:52:20 -04:00
parent 62d3b44768
commit 8564df51e5
8 changed files with 23 additions and 1 deletions

View File

@@ -16,3 +16,6 @@ EXPORT REDEF variable = 1234
DEF equs_sym EQUS "hello"
EXPORT equs_sym ; exports undefined symbol `hello` due to EQUS expansion
EXPORT DEF string EQUS "goodbye" ; invalid syntax
PURGE equ_sym
EXPORT equ_sym

View File

@@ -1,3 +1,12 @@
warning: Exporting an undefined symbol `undefined` [-Wexport-undefined]
at export.asm(1)
warning: Exporting an undefined symbol `hello` [-Wexport-undefined]
at export.asm(17)
while expanding symbol `equs_sym`
error: syntax error, unexpected EQUS
at export.asm(18)
warning: Purging an exported symbol `equ_sym` [-Wpurge]
at export.asm(20)
warning: Exporting an undefined symbol `equ_sym` [-Wexport-undefined]
at export.asm(21)
Assembly aborted with 1 error!