leo/tests/compiler/integers/i16/negate_zero.leo

13 lines
169 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 = 0i16;
2020-08-05 07:37:09 +03:00
2021-07-01 23:40:29 +03:00
return (-a == 0i16) == y;
2021-05-10 20:19:19 +03:00
}