solidity/test/libsolidity/semanticTests/array/delete/delete_removes_bytes_data.sol

11 lines
229 B
Solidity
Raw Normal View History

contract c {
fallback() external { data = msg.data; }
function del() public returns (bool) { delete data; return true; }
bytes data;
}
// ----
// (): 7 ->
// storageEmpty -> 0
// del(): 7 -> true
// storageEmpty -> 1