mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add also smoke tests for opcodes not part of Ewasm
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
sstore(0, chainid())
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=istanbul
|
||||
// ----
|
||||
// Trace:
|
||||
// Memory dump:
|
||||
// Storage dump:
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
sstore(0, extcodehash(address()))
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// Trace:
|
||||
// Memory dump:
|
||||
// 0: 0000000000000000000000000000000011111111000000000000000000000000
|
||||
// Storage dump:
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
sstore(0, selfbalance())
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=istanbul
|
||||
// ----
|
||||
// Trace:
|
||||
// Memory dump:
|
||||
// Storage dump:
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
let size := codesize()
|
||||
codecopy(0x40, 0, size)
|
||||
sstore(0, create2(42, 0, size, 0x20))
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// Trace:
|
||||
// Memory dump:
|
||||
// 0: 0000000000000000000000000000000000000000000000000000000000000014
|
||||
// 80: 636f6465636f6465636f6465636f6465636f6465000000000000000000000000
|
||||
// Storage dump:
|
||||
Reference in New Issue
Block a user