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

13 lines
260 B
Solidity
Raw Normal View History

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