solidity/test/libsolidity/semanticTests/array/create_dynamic_array_with_zero_length.sol

11 lines
185 B
Solidity
Raw Normal View History

contract C {
function f() public returns (uint256) {
uint256[][] memory a = new uint256[][](0);
return 7;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 7