Files
hakorune/apps/smokes/jit_aot_arith_branch.hako

14 lines
221 B
Plaintext

// JIT AOT smoke: arithmetic + compare + branch + return
static box Main {
main() {
local x, y
x = 1 + 2 * 3 // 7
y = x - 4 // 3
if y > 2 {
return y + 10 // 13
}
return y
}
}