Skip to content

Commit 268a776

Browse files
Update tests (yul keywords)
1 parent d9f5625 commit 268a776

File tree

7 files changed

+16
-0
lines changed

7 files changed

+16
-0
lines changed

test/libsolidity/syntaxTests/inlineAssembly/blobhash_pre_cancun_not_reserved.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ contract C {
1717
// ====
1818
// EVMVersion: <=shanghai
1919
// ----
20+
// Warning 5470: (98-106): "blobhash" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
21+
// Warning 5470: (237-303): "blobhash" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libsolidity/syntaxTests/inlineAssembly/prevrandao_allowed_function_pre_paris.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ contract C {
1818
// ====
1919
// EVMVersion: <paris
2020
// ----
21+
// Warning 5470: (101-111): "prevrandao" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
22+
// Warning 5470: (255-323): "prevrandao" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libyul/yulSyntaxTests/blobbasefee_identifier_pre_cancun.yul

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
// ====
55
// EVMVersion: <=shanghai
66
// ----
7+
// Warning 5470: (6-31): "blobbasefee" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libyul/yulSyntaxTests/blobhash_pre_cancun.yul

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
// ====
1212
// EVMVersion: <=shanghai
1313
// ----
14+
// Warning 5470: (20-28): "blobhash" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
15+
// Warning 5470: (55-77): "blobhash" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libyul/yulSyntaxTests/mcopy_as_identifier_pre_cancun.yul

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
}
1111
// ====
1212
// EVMVersion: <cancun
13+
// ----
14+
// Warning 5470: (20-25): "mcopy" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
15+
// Warning 5470: (52-71): "mcopy" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libyul/yulSyntaxTests/mcopy_pre_cancun.yul

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
}
1111
// ====
1212
// EVMVersion: <cancun
13+
// ----
14+
// Warning 5470: (20-25): "mcopy" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
15+
// Warning 5470: (52-71): "mcopy" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

test/libyul/yulSyntaxTests/tstore_tload_as_identifiers_pre_cancun.yul

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
}
55
// ====
66
// EVMVersion: <cancun
7+
// ----
8+
// Warning 5470: (6-26): "tstore" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.
9+
// Warning 5470: (31-50): "tload" will be promoted to reserved keyword in the next breaking version and will not be allowed anymore as an identifier.

0 commit comments

Comments
 (0)