[Sol->Yul] Implementing struct copying from calldata to memory.

Co-authored-by: Daniel Kirchner <daniel@ekpyron.org>
This commit is contained in:
Djordje Mijovic
2020-08-11 16:18:06 +02:00
co-authored by Daniel Kirchner
parent 05901f5bc9
commit d685bee2ec
3 changed files with 20 additions and 2 deletions
@@ -1,6 +1,5 @@
pragma experimental ABIEncoderV2;
contract C {
struct S {
uint256 a;
@@ -13,5 +12,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// ----
// f((uint256,uint256)): 42, 23 -> 42, 23
@@ -23,5 +23,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// ----
// f((uint256,uint256,(uint256,uint256),uint256)): 1, 2, 3, 4, 5 -> 1, 2, 3, 4, 5