Skip to content

Commit b27bb82

Browse files
committed
eof: Update syntax tests.
1 parent c5db7bd commit b27bb82

File tree

103 files changed

+699
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+699
-44
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pragma abicoder v2;
2+
3+
contract C {
4+
uint[][2] public tmp_i;
5+
function i(uint[][2] calldata s) external { tmp_i = s; }
6+
}
7+
// ====
8+
// compileViaYul: true
9+
// ----
10+
// i(uint256[][2]): 0x20, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04
11+
// gas irOptimized: 223100
12+
// tmp_i(uint256,uint256): 0, 0 -> 0x0A01
13+
// tmp_i(uint256,uint256): 1, 0 -> 0x0B01
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pragma abicoder v2;
2+
3+
contract C {
4+
uint[][] public tmp_i;
5+
function i(uint[][] calldata s) external { tmp_i = s; }
6+
}
7+
// ====
8+
// compileViaYul: true
9+
// ----
10+
// i(uint256[][]): 0x20, 2, 0x40, 0xC0, 3, 0x0A01, 0x0A02, 0x0A03, 4, 0x0B01, 0x0B02, 0x0B03, 0x0B04
11+
// gas irOptimized: 245506
12+
// tmp_i(uint256,uint256): 0, 0 -> 0x0A01
13+
// tmp_i(uint256,uint256): 1, 0 -> 0x0B01

test/libsolidity/syntaxTests/abiEncoder/v1_accessing_public_state_variable_via_v1_type.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ contract D {
1313
return a + b;
1414
}
1515
}
16+
// ====
17+
// bytecodeFormat: legacy
1618
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v1_library_function_accepting_storage_struct.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ contract Test {
1919
L.set(item);
2020
}
2121
}
22+
// ====
23+
// bytecodeFormat: legacy
2224
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_library_function_accepting_storage_struct.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ contract Test {
1919
L.get(item);
2020
}
2121
}
22+
// ====
23+
// bytecodeFormat: legacy
2224
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_call_to_v2_modifier.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ contract C is B {
2525
validate()
2626
{}
2727
}
28+
// ====
29+
// bytecodeFormat: legacy
2830
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_constructor_with_v2_modifier.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ import "B";
3232
contract D is C {
3333
constructor() validate B() validate C() validate {}
3434
}
35+
// ====
36+
// bytecodeFormat: legacy
3537
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_inheritance_from_contract_calling_v2_function.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ pragma abicoder v1;
2323
import "A";
2424

2525
contract C is B {}
26+
// ====
27+
// bytecodeFormat: legacy
2628
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_inheritance_from_contract_defining_v2_event.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ pragma abicoder v1;
1313
import "A";
1414

1515
contract D is C {}
16+
// ====
17+
// bytecodeFormat: legacy
1618
// ----

test/libsolidity/syntaxTests/abiEncoder/v1_inheritance_from_contract_emitting_v2_event.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ pragma abicoder v1;
1919
import "A";
2020

2121
contract D is C {}
22+
// ====
23+
// bytecodeFormat: legacy
2224
// ----

0 commit comments

Comments
 (0)