solidity/test/libsolidity/semanticTests/empty_for_loop.sol

15 lines
246 B
Solidity

contract test {
function f() public returns(uint ret) {
ret = 1;
for (;;) {
ret += 1;
if (ret >= 10) break;
}
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 10