leo/tests/compiler/circuits/inline.leo

21 lines
236 B
Plaintext
Raw Normal View History

2021-05-05 11:37:51 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- inline.in: |
[main]
x: u32 = 100;
[registers]
r0: u32 = 0;
*/
2020-07-17 06:47:47 +03:00
circuit Foo {
2020-07-17 22:59:18 +03:00
x: u32
2020-05-20 07:59:00 +03:00
}
2021-05-05 11:37:51 +03:00
function main(x: u32) -> u32 {
const a = Foo { x: x };
return a.x;
}