Update and add new tests for features of different EVM version

This commit is contained in:
Alex Beregszaszi
2020-07-03 14:08:09 +01:00
parent 2e6cbd8718
commit 9a94b89c48
6 changed files with 81 additions and 2 deletions
@@ -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
// ----