Skip to content

Commit 2ca82d3

Browse files
committed
eof: Update yulSyntaxTests tests for EOF
1 parent b6486db commit 2ca82d3

33 files changed

+58
-0
lines changed

test/libyul/yulSyntaxTests/builtin_function_literal.yul

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
datasize(x,1)
33
}
4+
// ====
5+
// bytecodeFormat: legacy
46
// ----
57
// TypeError 7000: (4-12): Function "datasize" expects 1 arguments but got 2.
68
// TypeError 9114: (4-12): Function expects direct literals as arguments.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
function datacopy(a, b, c) {}
33
}
4+
// ====
5+
// bytecodeFormat: legacy
46
// ----
57
// ParserError 5568: (15-23): Cannot use builtin function name "datacopy" as identifier name.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
function dataoffset(a) -> b {}
33
}
4+
// ====
5+
// bytecodeFormat: legacy
46
// ----
57
// ParserError 5568: (15-25): Cannot use builtin function name "dataoffset" as identifier name.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
function datasize(a) -> b {}
33
}
4+
// ====
5+
// bytecodeFormat: legacy
46
// ----
57
// ParserError 5568: (15-23): Cannot use builtin function name "datasize" as identifier name.

test/libyul/yulSyntaxTests/hex_switch_case.yul

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
case hex"00" {}
44
case hex"1122" {}
55
}
6+
// ====
7+
// bytecodeFormat: legacy
68
// ----

test/libyul/yulSyntaxTests/hex_switch_case_long.yul

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
case hex"00" {}
44
case hex"112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900" {}
55
}
6+
// ====
7+
// bytecodeFormat: legacy
68
// ----
79
// TypeError 3069: (53-178): String literal too long (60 > 32)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
pop(pc())
33
}
4+
// ====
5+
// bytecodeFormat: legacy
46
// ----
57
// SyntaxError 2450: (10-12): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.

test/libyul/yulSyntaxTests/loadimmutable.yul

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
}
44
// ====
55
// dialect: evm
6+
// bytecodeFormat: legacy
67
// ----

test/libyul/yulSyntaxTests/loadimmutable_bad_literal.yul

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66
// ====
77
// dialect: evm
8+
// bytecodeFormat: legacy
89
// ----
910
// TypeError 5859: (24-25): Function expects string literal.
1011
// TypeError 5859: (50-54): Function expects string literal.

test/libyul/yulSyntaxTests/loadimmutable_shadowing.yul

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
}
44
// ====
55
// dialect: evm
6+
// bytecodeFormat: legacy
67
// ----
78
// ParserError 5568: (15-28): Cannot use builtin function name "loadimmutable" as identifier name.

0 commit comments

Comments
 (0)