mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
339 B
Solidity
17 lines
339 B
Solidity
contract C {
|
|
function f() pure external {
|
|
assembly {
|
|
let s := returndatasize()
|
|
returndatacopy(0, 0, s)
|
|
}
|
|
}
|
|
function g() view external returns (uint ret) {
|
|
assembly {
|
|
ret := staticcall(0, gas(), 0, 0, 0, 0)
|
|
}
|
|
}
|
|
}
|
|
// ====
|
|
// EVMVersion: >=byzantium
|
|
// ----
|