2020-11-12 14:29:08 +00:00
|
|
|
contract c {
|
|
|
|
uint spacer1;
|
|
|
|
uint spacer2;
|
|
|
|
uint[3] data;
|
|
|
|
function fill() public {
|
|
|
|
for (uint i = 0; i < data.length; ++i) data[i] = i+1;
|
|
|
|
}
|
|
|
|
function clear() public { delete data; }
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-11-12 14:29:08 +00:00
|
|
|
// ----
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|
2020-11-12 14:29:08 +00:00
|
|
|
// fill() ->
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 0
|
2020-11-12 14:29:08 +00:00
|
|
|
// clear() ->
|
2021-01-08 03:45:19 +00:00
|
|
|
// storageEmpty -> 1
|