parser: recognize an end of comment of the form **/ at the end of a multi-line doc comment

This fixes #1433
This commit is contained in:
Yoichi Hirai
2016-11-30 17:28:07 +01:00
parent ac357d1225
commit eaab712944
2 changed files with 19 additions and 1 deletions
+13
View File
@@ -962,6 +962,19 @@ BOOST_AUTO_TEST_CASE(empty_comment)
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_CASE(comment_end_with_double_star)
{
char const* text = R"(
contract C1 {
/**
**/
}
contract C2 {}
)";
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_CASE(library_simple)
{
char const* text = R"(