solidity/test/libsolidity/semanticTests/array/delete/delete_memory_array.sol
2022-05-19 20:23:28 +02:00

17 lines
271 B
Solidity

contract C {
function len() public returns (uint ret) {
uint[] memory data = new uint[](2);
data[0] = 234;
data[1] = 123;
delete data;
assembly {
ret := mload(data)
}
}
}
// ====
// ----
// len() -> 0