Prevent purging referenced symbols

This is an immediate fix for #492, although #342 is needed to implement the
desired functionality.
This commit is contained in:
ISSOtm
2020-03-21 15:42:52 +01:00
parent eb445271df
commit 03967bd623
5 changed files with 42 additions and 0 deletions

7
test/asm/purge-ref.err Normal file
View File

@@ -0,0 +1,7 @@
ERROR: purge-ref.asm(4):
Symbol "ref" is referenced and thus cannot be purged
ERROR: purge-ref.asm(11):
Symbol "NotOK" is referenced and thus cannot be purged
ERROR: purge-ref.asm(15):
Symbol "EvenLessOK" is referenced and thus cannot be purged
error: Assembly aborted (3 errors)!