leo/tests/compiler/statements/compare_invalid_negates_fail.leo
2022-10-05 16:53:49 -07:00

18 lines
384 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file: inputs/u8.in
*/
program test.aleo {
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;
}}