mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
288 B
Solidity
14 lines
288 B
Solidity
contract C {
|
|
function f() public pure returns (uint r) {
|
|
assembly { function f() -> x { x := 1 } r := f() }
|
|
}
|
|
function g() public pure returns (uint r) {
|
|
assembly { function f() -> x { x := 2 } r := f() }
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 1
|
|
// g() -> 2
|