Handle -Wtruncation for link-time jr values

Fixes #2028
This commit is contained in:
Rangi
2026-07-21 14:51:58 -04:00
parent 50678d0942
commit ec5e6cbabb
7 changed files with 24 additions and 3 deletions
+11
View File
@@ -201,6 +201,17 @@ tryCmpRom "$test"/ref.out.bin
tryDiff "$test"/ref.out.sym "$outtemp2"
evaluateTest
test="jr-truncation"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
"$RGBASM" -o "$outtemp" "$test"/b.asm
continueTest
rgblinkQuiet -o "$gbtemp" -n "$outtemp2" "$otemp" "$outtemp" 2>"$outtemp3"
tryDiff "$test"/out.err "$outtemp3"
tryCmpRom "$test"/ref.out.bin
tryDiff "$test"/ref.out.sym "$outtemp2"
evaluateTest
test="high-low"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm