aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/263_create_memory_arrays.sol
blob: 71f43992b374f9a1f20a30b84be176bc06c811f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
library L {
    struct R { uint[10][10] y; }
    struct S { uint a; uint b; uint[20][20][20] c; R d; }
}
contract C {
    function f(uint size) public {
        L.S[][] memory x = new L.S[][](10);
        uint[] memory y = new uint[](20);
        bytes memory z = new bytes(size);
        x;y;z;
    }
}
// ----
// Warning: (122-301): Function state mutability can be restricted to pure