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

9 lines
181 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
}
}
// ----
2019-01-08 18:33:46 +00:00
// Warning: (105-113): Unreachable code.