mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +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;
|
|
}
|