solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/while_break.sol

13 lines
215 B
Solidity

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