leo/tests/compiler/structs/inline.leo

23 lines
298 B
Plaintext
Raw Normal View History

2022-06-23 11:38:33 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- inline.in: |
[main]
x: u32 = 100;
[registers]
r0: u32 = 0;
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
struct Foo {
x: u32
}
transition main(x: u32) -> u32 {
let a: Foo = Foo { x: x };
return a.x;
}
2022-06-23 11:38:33 +03:00
}