leo/disabled_tests/compiler/statements/iteration_variable.leo

17 lines
218 B
Plaintext
Raw Normal View History

2021-04-20 04:08:14 +03:00
/*
namespace: Compile
expectation: Pass
2021-05-03 17:28:53 +03:00
input_file: inputs/u32_3.in
2021-04-20 04:08:14 +03:00
*/
function main(x: u32) -> bool {
const COUNT: u32 = 2;
let y = x;
for i in 0..COUNT {
y -= 1;
}
return y == 1;
}