Copy value array from storage to storage.

This commit is contained in:
chriseth
2020-11-17 10:51:34 +01:00
parent f6ac6b738d
commit d9fb17a85e
5 changed files with 125 additions and 11 deletions
@@ -12,6 +12,8 @@ contract c {
len = data2.length; if (index < len) val = data2[index];
}
}
// ====
// compileViaYul: also
// ----
// setData1(uint256,uint256,uint256): 10, 5, 4 ->
// copyStorageStorage() ->
@@ -10,5 +10,7 @@ contract c {
}
}
// ====
// compileViaYul: also
// ----
// test() -> 9, 4
@@ -14,5 +14,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// ----
// test() -> 7