diff options
author | chriseth <chris@ethereum.org> | 2018-04-04 20:52:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 20:52:01 +0800 |
commit | 016f562348d5192b7d2f514a1aca961d4d665083 (patch) | |
tree | ab5f3421cb79a1f4caa193f988d755b2bef778b8 /test/libsolidity/syntaxTests | |
parent | 2fe5607a5a6618f27f4ed5c1effb4273c662ee3a (diff) | |
parent | 87ad337ae0c055c21476ef9961e52a9d7d3072bb (diff) | |
download | dexon-solidity-016f562348d5192b7d2f514a1aca961d4d665083.tar.gz dexon-solidity-016f562348d5192b7d2f514a1aca961d4d665083.tar.zst dexon-solidity-016f562348d5192b7d2f514a1aca961d4d665083.zip |
Merge pull request #3808 from ethereum/parserTests
SyntaxTests: extend syntax tests and isoltest to support parser error…
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol | 5 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/smoke_test.sol | 4 |
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; +} +// ---- |