mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 11:12:48 +03:00
21 lines
234 B
Plaintext
21 lines
234 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
inputs:
|
|
- inline.in: |
|
|
[main]
|
|
x: u32 = 100;
|
|
|
|
[registers]
|
|
r0: u32 = 0;
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32
|
|
}
|
|
|
|
function main(x: u32) -> u32 {
|
|
let a = Foo { x: x };
|
|
return a.x;
|
|
}
|