leo/tests/compiler/integers/i8/negate_min.leo

13 lines
186 B
Plaintext

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