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

13 lines
210 B
Solidity
Raw Normal View History

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