solidity/test/libsolidity/semanticTests/variables/delete_locals.sol

16 lines
286 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
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
// compileToEwasm: also
2019-07-08 14:04:52 +00:00
// ----
// delLocal() -> 6, 7