mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
25 lines
284 B
Solidity
25 lines
284 B
Solidity
pragma experimental solidity;
|
|
|
|
function f(a) -> (b) {
|
|
b = a;
|
|
}
|
|
|
|
contract C {
|
|
fallback() external {
|
|
let x : word;
|
|
let y : word;
|
|
assembly {
|
|
x := 0x42
|
|
}
|
|
y = f(x);
|
|
assembly {
|
|
mstore(0, y)
|
|
return(0, 32)
|
|
}
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: true
|
|
// ----
|
|
// () -> 21
|