From 96bc58b7f7b1bbc096bdc115bb60848892722078 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 11 Jul 2026 13:51:53 -0400 Subject: [PATCH] Add test case for local labels that superficially look like keywords --- test/asm/local-like-keyword.asm | 13 +++++++++++++ test/asm/local-like-keyword.out.bin | Bin 0 -> 12 bytes 2 files changed, 13 insertions(+) create mode 100644 test/asm/local-like-keyword.asm create mode 100644 test/asm/local-like-keyword.out.bin diff --git a/test/asm/local-like-keyword.asm b/test/asm/local-like-keyword.asm new file mode 100644 index 00000000..d4a33837 --- /dev/null +++ b/test/asm/local-like-keyword.asm @@ -0,0 +1,13 @@ +SECTION "test", ROM0 + +Global: dw Global +.ret dw .ret +.xor: dw .xor +Global.section: dw .section + +DEF n EQU 42 +.n: dw .n + +MACRO foo +ENDM +.foo: dw Global.foo diff --git a/test/asm/local-like-keyword.out.bin b/test/asm/local-like-keyword.out.bin new file mode 100644 index 0000000000000000000000000000000000000000..f6a32e62420dc375dcc105e78ab73fcb37fda068 GIT binary patch literal 12 TcmZQzU}9ilU}NB5;9>v(0GI$D literal 0 HcmV?d00001