Fix event parsing. Refs #3175

This commit is contained in:
Federico Bond
2017-11-22 23:08:12 -03:00
parent dc154b4e56
commit 14fd647b85
4 changed files with 19 additions and 12 deletions
+10
View File
@@ -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"(