leo/tests/compiler/integers/i16/negate_min_fail.leo

12 lines
190 B
Plaintext

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