solidity/test/libsolidity/semanticTests/statements/do_while_loop_continue.sol

17 lines
280 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
contract test {
function f() public pure returns(uint r) {
uint i = 0;
do
{
if (i > 0) return 0;
i++;
continue;
} while (false);
return 42;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 42