Skip to content

Commit 9c3a0f1

Browse files
committed
Review suggested test adjustments.
1 parent 4c84b77 commit 9c3a0f1

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

test/libsolidity/semanticTests/array/cleanup_during_multi_element_per_slot_copy.sol

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
contract C {
2+
uint32[] s;
3+
constructor()
4+
{
5+
s.push();
6+
s.push();
7+
}
8+
function f() external returns (uint)
9+
{
10+
(s[1], s) = (4, [0]);
11+
s = [0];
12+
s.push();
13+
return s[1];
14+
// used to return 4 via IR.
15+
}
16+
}
17+
// ----
18+
// constructor()
19+
// gas irOptimized: 237351
20+
// gas legacy: 221315
21+
// gas legacyOptimized: 185247
22+
// f() -> 0

0 commit comments

Comments
 (0)