Skip to content

Commit 1db3278

Browse files
authored
Merge pull request #11305 from ethereum/ewasm-semantic-tests
Enable more semantic tests for Ewasm
2 parents 55577cb + f952f85 commit 1db3278

File tree

113 files changed

+117
-4
lines changed

Some content is hidden

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

113 files changed

+117
-4
lines changed

test/libsolidity/semanticTests/abiEncoderV2/struct/struct_validation.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ contract C {
1212
}
1313
// ====
1414
// compileViaYul: also
15+
// compileToEwasm: also
1516
// ----
1617
// f((int16,uint8,bytes2)): 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01, 0xff, "ab" -> 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01, 0xff, "ab"
1718
// f((int16,uint8,bytes2)): 0xff010, 0xff, "ab" -> FAILURE

test/libsolidity/semanticTests/abiEncoderV2/struct/validation_function_type_inside_struct.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ contract C {
88
}
99
// ====
1010
// compileViaYul: also
11+
// compileToEwasm: also
1112
// ----
1213
// f((function)): "01234567890123456789abcd" -> 1
1314
// f((function)): "01234567890123456789abcdX" -> FAILURE

test/libsolidity/semanticTests/abiencodedecode/abi_encode_with_selector.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ contract C {
1717
}
1818
// ====
1919
// compileViaYul: also
20+
// compileToEwasm: also
2021
// ----
2122
// f0() -> 0x20, 4, 8234104107246695022420661102507966550300666591269321702959126607540084801536
2223
// f1() -> 0x20, 0x64, 8234104107246695022420661102507966550300666591269321702959126607540084801536, 862718293348820473429344482784628181556388621521298319395315527974912, 91135606241822717681769169345594720818313984248279388438121731325952, 0

test/libsolidity/semanticTests/abiencodedecode/abi_encode_with_selectorv2.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ contract C {
2626
}
2727
// ====
2828
// compileViaYul: also
29+
// compileToEwasm: also
2930
// ----
3031
// f0() -> 0x20, 4, 8234104107246695022420661102507966550300666591269321702959126607540084801536
3132
// f1() -> 0x20, 0x64, 8234104107246695022420661102507966550300666591269321702959126607540084801536, 862718293348820473429344482784628181556388621521298319395315527974912, 91135606241822717681769169345594720818313984248279388438121731325952, 0

test/libsolidity/semanticTests/abiencodedecode/offset_overflow_in_array_decoding.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ contract Test {
2525
}
2626
// ====
2727
// compileViaYul: also
28+
// compileToEwasm: also
2829
// ----
2930
// test() -> FAILURE

test/libsolidity/semanticTests/abiencodedecode/offset_overflow_in_array_decoding_2.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ contract Test {
2626
}
2727
// ====
2828
// compileViaYul: also
29+
// compileToEwasm: also
2930
// ----
3031
// withinArray() -> FAILURE

test/libsolidity/semanticTests/abiencodedecode/offset_overflow_in_array_decoding_3.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ contract Test {
1919
}
2020
// ====
2121
// compileViaYul: also
22+
// compileToEwasm: also
2223
// ----
2324
// test() -> FAILURE

test/libsolidity/semanticTests/arithmetics/checked_modifier_called_by_unchecked.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ contract C {
1010
}
1111
// ====
1212
// compileViaYul: also
13+
// compileToEwasm: also
1314
// ----
1415
// f(uint16,uint16,uint16): 0xe000, 0xe500, 2 -> 58626
1516
// f(uint16,uint16,uint16): 0x1000, 0xe500, 0xe000 -> FAILURE, hex"4e487b71", 0x11

test/libsolidity/semanticTests/arithmetics/signed_mod.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ contract C {
1414

1515
// ====
1616
// compileViaYul: also
17+
// compileToEwasm: also
1718
// ----
1819
// f(int256,int256): 7, 5 -> 2
1920
// f(int256,int256): 7, -5 -> 2

test/libsolidity/semanticTests/array/concat/bytes_concat_empty.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ contract C {
55
}
66
// ====
77
// compileViaYul: also
8+
// compileToEwasm: also
89
// ----
910
// f() -> 0x20, 0

0 commit comments

Comments
 (0)