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

17 lines
305 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/flag.in
*/
program test.aleo {
transition main(flag: u8, value: u8) -> u8 {
if (flag == 0u8) {
value += 1u8;
return value;
} else {
value += 2u8;
}
return value;
}}