leo/tests/compiler/integers/i128/negate_min.leo

12 lines
177 B
Plaintext
Raw Normal View History

2021-05-10 20:19:19 +03:00
/*
namespace: Compile
expectation: Pass
input_file: ../input/dummy.in
2021-05-10 20:19:19 +03:00
*/
function main(y: bool) -> bool{
2021-05-10 20:19:19 +03:00
const a = -128i128;
const b = -a;
2021-07-01 23:40:29 +03:00
return (b == -a) == y;
2021-05-10 20:19:19 +03:00
}