Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusaaguiar committed May 20, 2024
1 parent 2d0783a commit 50ad425
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/libsolidity/syntaxTests/stopAfterAnalysisError.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
contract C {
function f(uint[] x) public pure {
}
}
// ====
// stopAfter: analysis
// ----
// TypeError 6651: (28-36): Data location must be "memory" or "calldata" for parameter in function, but none was given.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
contract C {
uint x = address(0xabc);
}
// ====
// stopAfter: parsing
// ----
7 changes: 7 additions & 0 deletions test/libsolidity/syntaxTests/stopAfterParsingError.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contract C {
uint storage x;
}
// ====
// stopAfter:parsing
// ----
// ParserError 2314: (22-29): Expected identifier but got 'storage'

0 comments on commit 50ad425

Please sign in to comment.