aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/unreachable.sol
blob: b941ad34e63d77e045630af6063e5a04d70d683d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    uint[] s;
    function f() internal returns (uint[] storage a)
    {
        revert();
        a[0] = 0;
        a = s;
    }
}
// ----