solidity/test/libsolidity/semanticTests/builtinFunctions/blockhash_shadow_resolution.sol

10 lines
249 B
Solidity
Raw Normal View History

2019-07-10 15:23:19 +00:00
contract C {
function blockhash(uint256 blockNumber) public returns(bytes32) { bytes32 x; return x; }
function f() public returns(bytes32) { return blockhash(3); }
}
// ====
// compileToEwasm: also
// compileViaYul: also
2019-07-10 15:23:19 +00:00
// ----
// f() -> 0