leo/tests/compiler/integers/i64/negate_zero.leo

13 lines
169 B
Plaintext

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