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

26 lines
409 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/u32_3.in
- inputs/u32_5.in
*/
program test.aleo {
transition main(x: u32) -> bool {
let b: u32 = 5u32;
if x == 3u32 {
b = 1u32;
} else {
b = 0u32;
}
if x == 3u32 {
return (b == 1u32);
} else {
return (b == 0u32);
}
}
}