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

12 lines
190 B
Plaintext
Raw Normal View History

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