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

13 lines
257 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 ->
// storage: nonempty
// del(): 7 -> true
// storage: empty