leo/tests/compiler/integers/i32/negate_min.leo

12 lines
194 B
Plaintext
Raw Normal View History

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