Add create & delete array tests for yul

This commit is contained in:
Mathias Baumann
2020-07-08 13:10:33 +02:00
parent c16d7d0891
commit f9d6fa71fd
3 changed files with 59 additions and 1 deletions
@@ -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