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

12 lines
188 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;
}
}
// ====
// compileViaYul: also
// ----
// delLocal() -> 0