From c05e3fcec1623deb9c2fa4b023b1e2a6dc289bbb Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 30 Apr 2026 13:07:27 +0200 Subject: tests: adapt to the new 'unused' checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- tests/unused.s | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests/unused.s') 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 -- cgit v1.2.3