leo/tests/compiler/integers/i32/negate_zero.leo
2021-07-01 13:40:29 -07:00

18 lines
223 B
Plaintext

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