leo/tests/compiler/integers/i8/negate_zero.leo

13 lines
165 B
Plaintext

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