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,23 @@
|
||||
{
|
||||
function f() -> x { pop(address()) if 1 { pop(callvalue()) } }
|
||||
}
|
||||
// ====
|
||||
// stackOptimization: true
|
||||
// ----
|
||||
// PUSH1 0x14
|
||||
// JUMP
|
||||
// JUMPDEST
|
||||
// PUSH1 0x0
|
||||
// ADDRESS
|
||||
// POP
|
||||
// PUSH1 0x1
|
||||
// ISZERO
|
||||
// PUSH1 0x10
|
||||
// JUMPI
|
||||
// CALLVALUE
|
||||
// POP
|
||||
// JUMPDEST
|
||||
// JUMPDEST
|
||||
// SWAP1
|
||||
// JUMP
|
||||
// JUMPDEST
|
||||
Reference in New Issue
Block a user