Parser test.

This commit is contained in:
chriseth 2018-02-22 15:06:14 +01:00
parent ad010f557b
commit b5a3b6a429

View File

@ -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()
}