Adding new tests and activating old tests.

This commit is contained in:
Djordje Mijovic
2020-11-23 14:52:55 +01:00
parent 53a4b4a622
commit 41ec7cc23e
14 changed files with 184 additions and 63 deletions
@@ -0,0 +1,23 @@
pragma experimental ABIEncoderV2;
contract C {
struct S {
uint256 a;
uint256[2] b;
uint256 c;
}
function f(S calldata c)
external
pure
returns (uint256, uint256, uint256, uint256)
{
S memory m = c;
return (m.a, m.b[0], m.b[1], m.c);
}
}
// ====
// compileViaYul: also
// ----
// f((uint256,uint256[2],uint256)): 42, 1, 2, 23 -> 42, 1, 2, 23