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

16 lines
311 B
Solidity

contract C {
function f() public returns (uint k) {
assembly {
for {let i := 0} lt(i, 10) { i := add(i, 1) }
{
if eq(mod(i, 2), 0) { continue }
k := add(k, 1)
}
}
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 5