Iter 4c: IR-Snapshot-Tests als Codegen-Regressions-Schutz

Vier Snapshots in crates/ail/tests/snapshots/ (sum, max3, hello, list)
sichern den erzeugten LLVM-IR. Test-Helper normalisiert target triple
und trailing whitespace, sonst byte-für-byte-Vergleich. Update via
UPDATE_SNAPSHOTS=1 cargo test ir_snapshot_. Mismatch erzeugt eine
.actual-Datei mit dem aktuellen Output für Diff-Inspektion.
This commit is contained in:
2026-05-07 11:14:41 +02:00
parent c652b12582
commit 74a20055c3
6 changed files with 344 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
/target
*.ll.o
/build
crates/ail/tests/snapshots/*.actual
crates/ail/tests/snapshots/*.ll.actual