solidity/test/libsolidity/syntaxTests/parsing/while_loop.sol

9 lines
186 B
Solidity

contract test {
function fun() public pure {
uint256 x;
while (true) { x = 1; break; continue; } x = 9;
}
}
// ----
// Warning 5740: (105-113): Unreachable code.