leo/tests/compiler/integers/i128/negate_zero.leo

13 lines
172 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- ../inputs/dummy.in
*/
function main(y: bool) -> bool {
const a: i128 = 0i128;
return (-a == 0i128) == y;
}