zig/test/cases/while_loops.1.zig

13 lines
161 B
Zig

pub fn main() u8 {
var i: u8 = 0;
while (i < @as(u8, 10)) {
var x: u8 = 1;
_ = &x;
i += x;
}
return i - 10;
}
// run
//