mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-11 11:47:21 +03:00
18 lines
384 B
Plaintext
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;
|
|
}}
|