aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-03 20:41:53 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-04 01:54:46 +0800
commit87ad337ae0c055c21476ef9961e52a9d7d3072bb (patch)
treeec0fdc0aaed91284f3ad41db39a466ab80b4b3f7 /test/libsolidity/syntaxTests
parent6f9644add18b27363a423e2c7ccb0e578ba800bc (diff)
downloaddexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar.gz
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar.bz2
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar.lz
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar.xz
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.tar.zst
dexon-solidity-87ad337ae0c055c21476ef9961e52a9d7d3072bb.zip
Adds parsing sub-directory in syntaxTests and moves two example tests from SolidityParser.cpp to test contracts.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r--test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol5
-rw-r--r--test/libsolidity/syntaxTests/parsing/smoke_test.sol4
2 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol b/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol
new file mode 100644
index 00000000..c03fd97d
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol
@@ -0,0 +1,5 @@
+contract test {
+ uint256 ;
+}
+// ----
+// ParserError: Expected identifier, got 'Semicolon'
diff --git a/test/libsolidity/syntaxTests/parsing/smoke_test.sol b/test/libsolidity/syntaxTests/parsing/smoke_test.sol
new file mode 100644
index 00000000..d328b167
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/smoke_test.sol
@@ -0,0 +1,4 @@
+contract test {
+ uint256 stateVariable1;
+}
+// ----