zig/test/cases/wasm-wasi/conditions.1.zig

13 lines
146 B
Zig

pub fn main() u8 {
var i: u8 = 5;
if (i < @as(u8, 4)) {
i += 10;
} else {
i = 2;
}
return i - 2;
}
// run
//