leo/tests/compiler/circuits/inline_member_pass.leo

25 lines
309 B
Plaintext
Raw Normal View History

2022-06-23 11:38:33 +03:00
/*
namespace: Compile
2022-07-08 06:16:37 +03:00
expectation: Fail
2022-06-23 11:38:33 +03:00
inputs:
- inline.in: |
[main]
y: bool = true;
[constants]
x: u8 = 10;
[registers]
r0: bool = false;
*/
circuit Foo {
x: u8
}
function main(const x: u8, y: bool) -> bool {
const a: Foo = Foo { x };
return (b.x == a.x) == y;
}