mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add more tests to ViewPureChecker
This commit is contained in:
@@ -14,10 +14,16 @@ contract C {
|
||||
function h() view public {
|
||||
assembly { function g() { pop(blockhash(20)) } }
|
||||
}
|
||||
function j() public {
|
||||
function i() public {
|
||||
assembly { pop(call(0, 1, 2, 3, 4, 5, 6)) }
|
||||
}
|
||||
function k() public {
|
||||
function j() public {
|
||||
assembly { pop(call(gas(), 1, 2, 3, 4, 5, 6)) }
|
||||
}
|
||||
function k() public view {
|
||||
assembly { pop(balance(0)) }
|
||||
}
|
||||
function l() public view {
|
||||
assembly { pop(extcodesize(0)) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user