leo/tests/compiler/circuits/member_variable.leo
2022-08-04 20:00:40 -07:00

17 lines
212 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
circuit Foo {
x: u32,
}
@program
function main(y: bool) -> bool {
const a: Foo = Foo { x: 1u32 };
return (a.x == 1u32) == y;
}