From e0b1faf993bab97288540769f6f5f7955b3e0996 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 3 Sep 2025 21:31:31 +0200 Subject: Add a check for variable names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This check ensures that asan-friendly names actually match their expected scope. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index ab7312b..1c94cfd 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -61,6 +61,11 @@ echo "test: custom => bare_accesses.nes" diff tests/out/bare_accesses.txt tests/expected/bare_accesses.txt exit_code=$((exit_code + $?)) +echo "test: custom => variable_names.nes" +./target/debug/nasm -c empty --asan tests/variable_names.s 2>tests/out/variable_names.txt +diff tests/out/variable_names.txt tests/expected/variable_names.txt +exit_code=$((exit_code + $?)) + ## # code.nes -- cgit v1.2.3