mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 15:15:47 +03:00
27 lines
370 B
Plaintext
27 lines
370 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
inputs:
|
|
- inline.in: |
|
|
[main]
|
|
y: bool = true;
|
|
|
|
[constants]
|
|
x: u8 = 10;
|
|
|
|
[registers]
|
|
r0: bool = false;
|
|
*/
|
|
|
|
program test.aleo {
|
|
struct Foo {
|
|
x: u8
|
|
}
|
|
|
|
function main(const x: u8, y: bool) -> bool {
|
|
const a: Foo = Foo { x };
|
|
|
|
return (b.x == a.x) == y;
|
|
}
|
|
}
|