leo/tests/compiler/integers/i16/negate_zero.leo
2021-05-10 20:19:19 +03:00

18 lines
221 B
Plaintext

/*
namespace: Compile
expectation: Pass
inputs:
- dummy.in: |
[main]
y: bool = true;
[registers]
r0: bool = false;
*/
function main(y: bool) -> bool {
const a = 0i16;
return -a == 0i16 == y;
}