leo/tests/compiler/integers/u64/ternary.leo

14 lines
203 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/tern.in
- inputs/tern_rev.in
*/
function main(s: bool, a: u64, b: u64, c: u64) -> bool {
let r: u64 = s ? a : b;
return r == c;
}