aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/unreachableCode/while_break.sol
blob: 2d1ddd4f1e3e604ff77da1c0756ac6f5d1cb2db3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    function f() public pure {
        uint a = 0;
        while (a < 100) {
            a++;
            break;
            a--;
        }
    }
}
// ----
// Warning: (138-141): Unreachable code.