diff options
author | chriseth <chris@ethereum.org> | 2018-02-23 05:42:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 05:42:04 +0800 |
commit | 2b62c201be166222f05acfa8422b1968f2cf924a (patch) | |
tree | 501613fa210a9c0f9e74f1f277ccb6a117d5c639 /test/libsolidity/SolidityParser.cpp | |
parent | 97d1c70491c027051feac065c827b223ce6acf11 (diff) | |
parent | b5a3b6a4293537c843e8387ffd0b03253160dc0a (diff) | |
download | dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.gz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.bz2 dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.lz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.xz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.zst dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.zip |
Merge pull request #3538 from ethereum/emitEvents
emit pseudo-keyword for events.
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-rw-r--r-- | test/libsolidity/SolidityParser.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp index 861e6408..b7097d0f 100644 --- a/test/libsolidity/SolidityParser.cpp +++ b/test/libsolidity/SolidityParser.cpp @@ -1708,6 +1708,19 @@ BOOST_AUTO_TEST_CASE(newInvalidTypeName) CHECK_PARSE_ERROR(text, "Expected explicit type name"); } +BOOST_AUTO_TEST_CASE(emitWithoutEvent) +{ + char const* text = R"( + contract C { + event A(); + function f() { + emit A; + } + } + )"; + CHECK_PARSE_ERROR(text, "Expected token LParen got 'Semicolon'"); +} + BOOST_AUTO_TEST_SUITE_END() } |