aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bare_accesses.s4
-rw-r--r--tests/expected/bare_accesses.txt1
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/bare_accesses.s b/tests/bare_accesses.s
index 49628b4..61ae7c6 100644
--- a/tests/bare_accesses.s
+++ b/tests/bare_accesses.s
@@ -37,3 +37,7 @@ palettes:
.byte $0F
lda $200 ; asan:ignore
+lda $200
+
+jmp $8000
+jmp ($8000)
diff --git a/tests/expected/bare_accesses.txt b/tests/expected/bare_accesses.txt
index 4c14629..0eab60f 100644
--- a/tests/expected/bare_accesses.txt
+++ b/tests/expected/bare_accesses.txt
@@ -1,4 +1,5 @@
warning: accessing a memory region without using a variable (bare_accesses.s: line 22)
warning: accessing a memory region without a proper name ('whatever') (bare_accesses.s: line 23)
+warning: accessing a memory region without using a variable (bare_accesses.s: line 40)
error: out of bounds memory access for 'zp_used' ($00-$01) (bare_accesses.s: line 27)
error: out of bounds memory access for 'zp_used' ($00-$01) (bare_accesses.s: line 28)