mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
44da8507b1
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
19 lines
398 B
Solidity
19 lines
398 B
Solidity
contract c {
|
|
uint256[4][] a;
|
|
uint256[10][] b;
|
|
uint256[][] c;
|
|
|
|
function test(uint256[2][] calldata d) external returns (uint256) {
|
|
a = d;
|
|
b = a;
|
|
c = b;
|
|
return c[1][1] | c[1][2] | c[1][3] | c[1][4];
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
|
|
// gas irOptimized: 689714
|
|
// gas legacy: 686178
|
|
// gas legacyOptimized: 685628
|