Update tests.

This commit is contained in:
Daniel Kirchner
2018-07-12 20:33:52 +02:00
parent 6f383e1626
commit 62645d5302
22 changed files with 177 additions and 103 deletions
@@ -2,10 +2,10 @@ contract D {
struct S { uint a; uint b; }
}
contract C {
function f() internal returns (uint, uint, uint, D.S[20] storage, uint) {
(,,,D.S[10*2] storage x,) = f();
function f() internal pure {
(,,,D.S[10*2] storage x,) = g();
x;
}
}
function g() internal pure returns (uint, uint, uint, D.S[20] storage x, uint) { x = x; }
}
// ----
// Warning: (110-117): This variable is of storage pointer type and might be returned without assignment. This can cause storage corruption. Assign the variable (potentially from itself) to remove this warning.