aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/assembly.sol
blob: bfcbbef51d4177bdcbea37191437465d6ca0d879 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    uint[] r;
    function f() internal view returns (uint[] storage s) {
        assembly { pop(s_slot) }
        s = r;
    }
}
// ----
// TypeError: (92-126): This variable is of storage pointer type and can be accessed without prior assignment.