aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
blob: b6dd12b800493e19c3c0781d0b5a01e55d060b5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract C {
    uint[] x;
    function() external { 
        uint[] storage y = x;
        assembly {
            pop(y)
        }
    }
}
// ----
// TypeError: (119-120): You have to use the _slot or _offset suffix to access storage reference variables.