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

14 lines
223 B
Solidity

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