test: Phase 103 if-only merge fixture + VM/LLVM smokes

This commit is contained in:
nyash-codex
2025-12-17 17:41:07 +09:00
parent 935d475882
commit 99e1d24eaf
3 changed files with 200 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// Phase 103: if-only merge regression fixture
// Goal: require merge (PHI-equivalent) in an if-only program (no loops),
// and include one nested if to ensure nested merge stability.
box Main {
main() {
local x = 0
if "x" == "x" {
if "y" == "z" {
x = 1
} else {
x = 2
}
} else {
x = 3
}
print(x)
return "OK"
}
}