mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update and add new tests for features of different EVM version
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
contract C {
|
||||
function f() view external returns (uint ret) {
|
||||
assembly {
|
||||
ret := shl(gas(), 5)
|
||||
ret := shr(ret, 2)
|
||||
ret := sar(ret, 2)
|
||||
}
|
||||
}
|
||||
function g() external returns (address ret) {
|
||||
assembly {
|
||||
ret := create2(0, 0, 0, 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
Reference in New Issue
Block a user