2020-06-24 16:14:29 +00:00
|
|
|
contract C {
|
|
|
|
struct S {
|
|
|
|
uint a;
|
|
|
|
}
|
|
|
|
|
|
|
|
function f() external returns (uint) {
|
|
|
|
S memory s = S(1);
|
|
|
|
return s.a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-06-24 16:14:29 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 1
|