solidity/test/libsolidity/semanticTests/structs/calldata/calldata_struct.sol

20 lines
310 B
Solidity
Raw Normal View History

2020-11-23 18:06:44 +00:00
pragma abicoder v2;
contract C {
struct S {
uint256 a;
uint256 b;
}
function f(S calldata s) external pure returns (uint256 a, uint256 b) {
a = s.a;
b = s.b;
}
}
2020-07-20 13:06:45 +00:00
// ====
// compileToEwasm: also
// ----
// f((uint256,uint256)): 42, 23 -> 42, 23