leo/tests/compiler/field/ternary.leo

11 lines
192 B
Plaintext
Raw Normal View History

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/fields.in
*/
@program
function main(a: field, b: field, c: field) -> bool {
return b == 1field ? a == 1field : c == 2field;
}