mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 20:24:52 +03:00
28 lines
353 B
Plaintext
28 lines
353 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
inputs:
|
|
- func_circ.in: |
|
|
[main]
|
|
a: u32 = 100;
|
|
|
|
[registers]
|
|
r0: bool = false;
|
|
*/
|
|
|
|
circuit Foo {
|
|
a: u32,
|
|
}
|
|
|
|
circuit Bar {
|
|
function bar(a: u32) -> u32 {
|
|
let f = Foo { a: a };
|
|
return f.a;
|
|
}
|
|
}
|
|
|
|
function main(a: u32) -> bool {
|
|
let b = Bar::bar(a);
|
|
return a == b;
|
|
}
|