solidity/test/libsolidity/syntaxTests/inlineAssembly/evm_byzantium.sol
Kamil Śliwak 7f4f655cca Disallow RETURNDATASIZE and RETURNDATACOPY in inline assembly blocks in pure functions
(cherry picked from commit f567eb1fb2)

quick fix to pass failing test at ./test/externalTests/ens.sh (line 80) -- Should be removed when 0.9 is released.
2022-05-20 09:31:27 -03:00

17 lines
339 B
Solidity

contract C {
function f() view 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
// ----