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,17 @@
contract c {
uint spacer1;
uint spacer2;
uint[20] data;
function fill() public {
for (uint i = 0; i < data.length; ++i) data[i] = i+1;
}
function clear() public { delete data; }
}
// ====
// compileViaYul: also
// ----
// storage: empty
// fill() ->
// storage: nonempty
// clear() ->
// storage: empty