mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
233 B
Solidity
9 lines
233 B
Solidity
|
contract C {
|
||
|
function f(uint[2][] calldata x) public returns (uint[2][] memory r) {
|
||
|
assembly { x.offset := 0x44 x.length := 2 }
|
||
|
r = x;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f(uint256[2][]): 0x0, 1, 8, 7, 6, 5 -> 0x20, 2, 8, 7, 6, 5
|