solidity/test/libsolidity/semanticTests/empty_for_loop.sol
2020-11-03 11:00:52 +01:00

14 lines
222 B
Solidity

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