zig/test/cases/while_loops.0.zig

13 lines
143 B
Zig
Raw Normal View History

2022-04-27 21:59:55 +01:00
pub fn main() u8 {
var i: u8 = 0;
while (i < @as(u8, 5)) {
i += 1;
}
return i - 5;
}
// run
// target=wasm32-wasi
//