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

9 lines
186 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract test {
2018-06-15 10:30:28 +00:00
function fun() public pure {
uint256 x;
while (true) { x = 1; break; continue; } x = 9;
2018-05-17 07:04:39 +00:00
}
}
// ----
// Warning 5740: (105-113): Unreachable code.