leo/tests/compiler/statements/iteration_basic.leo
2021-04-19 18:08:14 -07:00

16 lines
181 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: u32_3.in
*/
function main(x: u32) -> bool {
let y = x;
for i in 0..3 {
y -= 1;
}
return y == 0;
}