leo/tests/compiler/integers/i32/negate_zero.leo

13 lines
169 B
Plaintext

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