leo/tests/compiler/statements/iteration_nested.leo
2022-10-05 16:53:49 -07:00

20 lines
321 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/u32_3.in
*/
program test.aleo {
transition main(x: u32) -> u32 {
let y: u32 = x;
for i: u32 in 0u32..2u32 {
for j: u32 in 0u32..2u32 {
y = y + 1u32;
}
}
return y;
}
}