mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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"(
|
||||
|
||||
Reference in New Issue
Block a user