mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Review suggested test adjustments.
This commit is contained in:
parent
4c84b77a4b
commit
9c3a0f11f9
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user