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