llvm: extend If PHI hygiene smoke with multi-branch + guard chain case
This commit is contained in:
11
apps/tests/macro_golden_if_chain_guard.nyash
Normal file
11
apps/tests/macro_golden_if_chain_guard.nyash
Normal file
@ -0,0 +1,11 @@
|
||||
local x = 5
|
||||
if (x < 0) {
|
||||
print(-1)
|
||||
} else if (x < 3) {
|
||||
print(0)
|
||||
} else if ((x < 10) && x.is("Integer")) {
|
||||
print(1)
|
||||
} else {
|
||||
print(2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user