leo/tests/compiler/circuits/member_variable.leo
2021-05-05 11:37:51 +03:00

19 lines
221 B
Plaintext

/*
namespace: Compile
expectation: Pass
inputs:
- member.in: |
[registers]
r0: bool = false;
*/
circuit Foo {
x: u32,
}
function main() -> bool {
const a = Foo { x: 1u32 };
return a.x == 1u32;
}