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