Moving some bytes and array tests to semanticTests

This commit is contained in:
Djordje Mijovic
2020-11-13 12:32:39 +01:00
parent bdf05bf8a0
commit 11033c9536
16 changed files with 297 additions and 398 deletions
@@ -0,0 +1,23 @@
contract c {
uint[20] spacer;
uint[] dynamic;
function fill() public {
for (uint i = 0; i < 21; ++i)
dynamic.push(i + 1);
}
function halfClear() public {
while (dynamic.length > 5)
dynamic.pop();
}
function fullClear() public { delete dynamic; }
}
// ====
// compileViaYul: also
// ----
// storage: empty
// fill() ->
// storage: nonempty
// halfClear() ->
// storage: nonempty
// fullClear() ->
// storage: empty