leo/tests/compiler/integers/i64/negate_min.leo

12 lines
203 B
Plaintext

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