Skip to content

Commit 586d314

Browse files
committed
eof: Update gasTests tests
1 parent da7e1bc commit 586d314

12 files changed

+30
-0
lines changed

test/libsolidity/gasTests/abiv2.sol

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ contract C {
1212
function f7(uint[31] memory, string[20] memory, C, address) public returns (bytes[] memory, uint16[] memory) {}
1313
function f8(uint[32] memory, string[] memory, uint32, address) public returns (uint[] memory, uint16[] memory) {}
1414
}
15+
// ====
16+
// EVMVersion: =current
17+
// bytecodeFormat: legacy
1518
// ----
1619
// creation:
1720
// codeDepositCost: 1208000

test/libsolidity/gasTests/abiv2_optimised.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ contract C {
1313
function f8(uint[32] memory, string[] memory, uint32, address) public returns (uint[] memory, uint16[] memory) {}
1414
}
1515
// ====
16+
// EVMVersion: =current
17+
// bytecodeFormat: legacy
1618
// optimize: true
1719
// optimize-yul: true
1820
// ----

test/libsolidity/gasTests/data_storage.sol

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ contract C {
1111
require(false, "12345678901234567890123456789012123456789012345678901234567890123");
1212
}
1313
}
14+
// ====
15+
// EVMVersion: =current
16+
// bytecodeFormat: legacy
1417
// ----
1518
// creation:
1619
// codeDepositCost: 377800

test/libsolidity/gasTests/dispatch_large.sol

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ contract Large {
2222
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
2323
function g0(uint x) public payable returns (uint) { require(x > 10); }
2424
}
25+
// ====
26+
// EVMVersion: =current
27+
// bytecodeFormat: legacy
2528
// ----
2629
// creation:
2730
// codeDepositCost: 618400

test/libsolidity/gasTests/dispatch_large_optimised.sol

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ contract Large {
2323
function g0(uint x) public payable returns (uint) { require(x > 10); }
2424
}
2525
// ====
26+
// EVMVersion: =current
27+
// bytecodeFormat: legacy
2628
// optimize: true
2729
// optimize-runs: 2
2830
// ----

test/libsolidity/gasTests/dispatch_medium.sol

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ contract Medium {
99
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
1010
function g0(uint x) public payable returns (uint) { require(x > 10); }
1111
}
12+
// ====
13+
// EVMVersion: =current
14+
// bytecodeFormat: legacy
1215
// ----
1316
// creation:
1417
// codeDepositCost: 259600

test/libsolidity/gasTests/dispatch_medium_optimised.sol

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ contract Medium {
1010
function g0(uint x) public payable returns (uint) { require(x > 10); }
1111
}
1212
// ====
13+
// EVMVersion: =current
14+
// bytecodeFormat: legacy
15+
// ====
1316
// optimize: true
1417
// optimize-runs: 2
1518
// ----

test/libsolidity/gasTests/dispatch_small.sol

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ contract Small {
44
function f1(uint x) public returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
55
fallback () external payable {}
66
}
7+
// ====
8+
// EVMVersion: =current
9+
// bytecodeFormat: legacy
710
// ----
811
// creation:
912
// codeDepositCost: 103800

test/libsolidity/gasTests/dispatch_small_optimised.sol

+2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ contract Small {
55
fallback () external payable {}
66
}
77
// ====
8+
// EVMVersion: =current
89
// optimize: true
910
// optimize-runs: 2
11+
// bytecodeFormat: legacy
1012
// ----
1113
// creation:
1214
// codeDepositCost: 58200

test/libsolidity/gasTests/exp.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ contract C {
1515
}
1616
}
1717
// ====
18+
// EVMVersion: =current
19+
// bytecodeFormat: legacy
1820
// optimize: false
1921
// optimize-yul: false
2022
// ----

test/libsolidity/gasTests/exp_optimized.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ contract C {
1515
}
1616
}
1717
// ====
18+
// EVMVersion: =current
19+
// bytecodeFormat: legacy
1820
// optimize: true
1921
// optimize-yul: true
2022
// ----

test/libsolidity/gasTests/storage_costs.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ contract C {
1111
}
1212
}
1313
// ====
14+
// EVMVersion: =current
1415
// optimize: true
1516
// optimize-yul: true
17+
// bytecodeFormat: legacy
1618
// ----
1719
// creation:
1820
// codeDepositCost: 25600

0 commit comments

Comments
 (0)