leo/tests/compiler/integers/i16/negate.leo

12 lines
156 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/neg.in
- inputs/neg_rev.in
*/
function main(a: i16, b: i16) -> bool {
return -a == b;
}