mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix event parsing. Refs #3175
This commit is contained in:
@@ -960,6 +960,16 @@ BOOST_AUTO_TEST_CASE(event_arguments_indexed)
|
||||
BOOST_CHECK(successParse(text));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(event_with_no_argument_list_fails)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract c {
|
||||
event e;
|
||||
}
|
||||
)";
|
||||
CHECK_PARSE_ERROR(text, "Expected token LParen got 'Semicolon'");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(visibility_specifiers)
|
||||
{
|
||||
char const* text = R"(
|
||||
|
||||
Reference in New Issue
Block a user