test: Phase 103 if-only merge fixture + VM/LLVM smokes
This commit is contained in:
23
apps/tests/phase103_if_only_merge_min.hako
Normal file
23
apps/tests/phase103_if_only_merge_min.hako
Normal 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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user