Files
hakorune/apps/tests/mir-phi-min/main.hako

16 lines
266 B
Plaintext

// mir-phi-min - minimal PHI merge across then/else
static box Main {
main() {
local x
if 1 < 2 {
x = 10
} else {
x = 20
}
// Use x after merge to force PHI
return x // expect 10
}
}