solidity/test/libsolidity/semanticTests/array/delete/delete_memory_array.sol
Daniel Kirchner a8f7c69c47 Adjust tests.
2021-09-13 20:41:40 +02:00

19 lines
332 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)
}
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileViaYul: also
// ----
// len() -> 0