Review suggested test adjustments.

This commit is contained in:
Daniel Kirchner 2022-06-15 12:15:54 +02:00
parent 4c84b77a4b
commit 9c3a0f11f9
3 changed files with 22 additions and 22 deletions

View File

@ -1,22 +0,0 @@
contract C {
uint32[] s;
constructor()
{
s.push();
s.push();
}
function f() external returns (uint)
{
(s[1], s) = (4, [0]);
s = [0];
s.push();
return s[1];
// used to return 4 via IR.
}
}
// ----
// constructor()
// gas irOptimized: 237351
// gas legacy: 221315
// gas legacyOptimized: 185247
// f() -> 0

View File

@ -0,0 +1,22 @@
contract C {
uint32[] s;
constructor()
{
s.push();
s.push();
}
function f() external returns (uint)
{
(s[1], s) = (4, [0]);
s = [0];
s.push();
return s[1];
// used to return 4 via IR.
}
}
// ----
// constructor()
// gas irOptimized: 237351
// gas legacy: 221315
// gas legacyOptimized: 185247
// f() -> 0