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

21 lines
266 B
Plaintext

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