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

17 lines
285 B
Solidity

contract C {
function f() public pure returns (uint w) {
assembly {
function f() -> t {
t := 2
leave
t := 9
}
w := f()
}
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 2