solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/while_break.sol
2022-04-01 23:41:18 -05:00

13 lines
221 B
Solidity

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