aboutsummaryrefslogtreecommitdiff
path: root/tests/unused.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-30 13:07:27 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-30 13:07:27 +0200
commitc05e3fcec1623deb9c2fa4b023b1e2a6dc289bbb (patch)
tree0ffc9f99d3f9973e8f154c80086de3d98b6e0c3b /tests/unused.s
parent645c51f7ea035c6531f0a23e101c2b5d2a4d6b48 (diff)
downloadtools.nes-c05e3fcec1623deb9c2fa4b023b1e2a6dc289bbb.tar.gz
tools.nes-c05e3fcec1623deb9c2fa4b023b1e2a6dc289bbb.zip
tests: adapt to the new 'unused' checks
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'tests/unused.s')
-rw-r--r--tests/unused.s16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/unused.s b/tests/unused.s
index 938794d..2f0bb32 100644
--- a/tests/unused.s
+++ b/tests/unused.s
@@ -7,9 +7,23 @@
.segment "CODE"
+;;; Macros
+
+.macro USED_MACRO UNUSED_ARG
+ nop
+.endmacro
+
+.macro UNUSED_MACRO ARG1
+ lda ARG1
+.endmacro
+
+USED_MACRO 1
+
+;;; Variables
+
zp_unused = $00
zp_used = $01
-zp_another = $02 ; asan:ignore
+zp_another = $02 ; check:ignore
zp_more = $03
zp_yet = $04