solidity/test/libsolidity/semanticTests/viaYul/array_2d_assignment.sol
Daniel Kirchner a8f7c69c47 Adjust tests.
2021-09-13 20:41:40 +02:00

16 lines
319 B
Solidity

contract C {
function f(uint n) public pure returns (uint) {
uint[][] memory a = new uint[][](2);
for (uint i = 0; i < 2; ++i)
a[i] = new uint[](3);
a[1][1] = n;
uint[] memory b = a[1];
return b[1];
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileViaYul: also
// ----
// f(uint256): 42 -> 42