leo/tests/compiler/boolean/conditional.leo

13 lines
221 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/false_false.in
- inputs/false_true.in
- inputs/true_false.in
- inputs/true_true.in
*/
function main(a: bool, b: bool) -> bool {
return a ? b : false;
}