leo/tests/compiler/integers/i16/negate_zero.leo

13 lines
169 B
Plaintext

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