aboutsummaryrefslogtreecommitdiff
path: root/tests/expected/variable_names.txt
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-09-03 21:31:31 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-09-03 21:40:46 +0200
commite0b1faf993bab97288540769f6f5f7955b3e0996 (patch)
tree862130ab64adefc17b7796eb6ed53dcdd581c065 /tests/expected/variable_names.txt
parent9dcbf460ff692c049e4d327afcbdbc39ba4e8c65 (diff)
downloadtools.nes-e0b1faf993bab97288540769f6f5f7955b3e0996.tar.gz
tools.nes-e0b1faf993bab97288540769f6f5f7955b3e0996.zip
Add a check for variable names
This check ensures that asan-friendly names actually match their expected scope. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'tests/expected/variable_names.txt')
-rw-r--r--tests/expected/variable_names.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/expected/variable_names.txt b/tests/expected/variable_names.txt
new file mode 100644
index 0000000..416ca69
--- /dev/null
+++ b/tests/expected/variable_names.txt
@@ -0,0 +1,4 @@
+warning: you are assigning the zero-page variable 'zp_bad' ($0300) to something outside of zero page (variable_names.s: line 11)
+warning: you are assigning the variable 'm_bad' ($02) to something in zero page (variable_names.s: line 13)
+warning: you are assigning the variable 'wr_bad' ($01) to something in zero page (variable_names.s: line 14)
+warning: you are assigning the variable 'wr_out' ($0400) to something outside of Working RAM (variable_names.s: line 16)