solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/while_break.sol
2019-01-10 10:36:50 +01:00

13 lines
210 B
Solidity

contract C {
function f() public pure {
uint a = 0;
while (a < 100) {
a++;
break;
a--;
}
}
}
// ----
// Warning: (138-141): Unreachable code.