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

13 lines
212 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
contract test {
function delLocal() public returns (uint res){
uint v = 5;
delete v;
res = v;
}
}
// ====
// compileToEwasm: also
// compileViaYul: also
2019-07-08 14:04:52 +00:00
// ----
// delLocal() -> 0