solidity/test/libsolidity/semanticTests/experimental/stub.sol
Daniel Kirchner bd0e0fcdbe tmp
2023-06-20 04:08:23 +02:00

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