mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add test cases for return slot allocation.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
function f() -> x { pop(address()) sstore(0, x) pop(callvalue()) }
|
||||
}
|
||||
// ====
|
||||
// stackOptimization: true
|
||||
// ----
|
||||
// PUSH1 0x11
|
||||
// JUMP
|
||||
// JUMPDEST
|
||||
// PUSH1 0x0
|
||||
// ADDRESS
|
||||
// POP
|
||||
// DUP1
|
||||
// PUSH1 0x0
|
||||
// SSTORE
|
||||
// CALLVALUE
|
||||
// POP
|
||||
// JUMPDEST
|
||||
// SWAP1
|
||||
// JUMP
|
||||
// JUMPDEST
|
||||
Reference in New Issue
Block a user