Skip to content

Commit 12067ee

Browse files
committed
eof: Update yulSyntaxTests tests for EOF
1 parent e1e33b2 commit 12067ee

Some content is hidden

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

43 files changed

+120
-11
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.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
auxdataloadn(x,1)
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// ----
7+
// TypeError 7000: (6-18): Function "auxdataloadn" expects 1 arguments but got 2.
8+
// TypeError 9114: (6-18): Function expects direct literals as arguments.
9+
// DeclarationError 8198: (19-20): Identifier "x" not found.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
function datacopy(a, b, c) {}
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// ----
7+
// DeclarationError 5017: (6-35): The identifier "datacopy" is reserved and can not be used.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
function dataoffset(a) -> b {}
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// ----
7+
// DeclarationError 5017: (6-36): The identifier "dataoffset" is reserved and can not be used.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
function datasize(a) -> b {}
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// ----
7+
// DeclarationError 5017: (6-34): The identifier "datasize" is reserved and can not be used.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
function loadimmutable(a) {}
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// dialect: evm
7+
// ----
8+
// DeclarationError 5017: (6-34): The identifier "loadimmutable" is reserved and can not be used.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
auxdataloadn(auxdataloadn(0))
3+
}
4+
// ====
5+
// bytecodeFormat: >=EOFv1
6+
// dialect: evm
7+
// ----
8+
// TypeError 9114: (6-18): Function expects direct literals as arguments.

0 commit comments

Comments
 (0)