solidity/test/libsolidity/semanticTests/statements/do_while_loop_continue.sol
2022-05-19 20:23:28 +02:00

17 lines
281 B
Solidity

contract test {
function f() public pure returns(uint r) {
uint i = 0;
do
{
if (i > 0) return 0;
i++;
continue;
} while (false);
return 42;
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 42