mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add create & delete array tests for yul
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// len() -> 0
|
||||
Reference in New Issue
Block a user