aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/unreachableCode/for_break.sol
blob: 496addb2f795777c8d42bd8dbcb2ed29dd058e95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    function f() public pure {
        for (uint a = 0; a < 1; a++) {
            break;
            uint b = 42; b;
        }
        return;
    }
}
// ----
// Warning: (76-79): Unreachable code.
// Warning: (114-128): Unreachable code.