From 54e3fc561add5ce9d776a11a286b988aacb59daa Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 29 Sep 2026 23:37:48 +0200 Subject: nasm: warn on labels that point out of bounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 4df7128..4b9af90 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -147,6 +147,13 @@ exit_code=$((exit_code + $?)) diff tests/out/global-labels.nes tests/expected/global-labels.nes exit_code=$((exit_code + $?)) +echo "test: custom => out.nes" +./target/debug/nasm -c empty -Werror --asan -o tests/out/out.nes tests/out.s 2>tests/out/out.txt +diff tests/out/out.txt tests/expected/out.txt +exit_code=$((exit_code + $?)) +diff tests/out/out.nes tests/expected/out.nes +exit_code=$((exit_code + $?)) + ## # code.nes -- cgit v1.2.3