leo/tests/compiler/integers/i16/negate_zero.leo
2022-08-04 20:00:40 -07:00

14 lines
178 B
Plaintext

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