solidity/test/libsolidity/semanticTests/variables/delete_local.sol
2019-07-08 16:04:52 +02:00

12 lines
188 B
Solidity

contract test {
function delLocal() public returns (uint res){
uint v = 5;
delete v;
res = v;
}
}
// ====
// compileViaYul: also
// ----
// delLocal() -> 0