mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
262 B
Solidity
15 lines
262 B
Solidity
|
contract test {
|
||
|
function delLocal() public returns (uint res1, uint res2){
|
||
|
uint v = 5;
|
||
|
uint w = 6;
|
||
|
uint x = 7;
|
||
|
delete v;
|
||
|
res1 = w;
|
||
|
res2 = x;
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// delLocal() -> 6, 7
|