2020-11-02 12:11:18 +00:00
|
|
|
contract test {
|
|
|
|
function f() public returns(uint ret) {
|
|
|
|
ret = 1;
|
|
|
|
for (;;) {
|
|
|
|
ret += 1;
|
|
|
|
if (ret >= 10) break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-11-02 12:11:18 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 10
|