leo/tests/compiler/statements/compare_invalid_negates_fail.leo
2022-05-23 18:55:42 -07:00

16 lines
318 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file: inputs/u8.in
*/
function main(a: u8) -> bool {
let b: bool = -a == -1u8;
let c: bool = -a > -1u8;
let d: bool = -a < -1u8;
let e: bool = -a >= -1u8;
let f: bool = -a <= -1u8;
let g: u8 = -a * -1u8;
let h: u8 = -a ** -1u8;
return b;
}