aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-01 00:28:07 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-01 00:28:07 +0800
commiteaab71294476f46513678be2e8cad02589d141dc (patch)
tree5ee25f39ba1fe5d2424a7969d546f3a0304ec863 /test
parentac357d12252ceb113a823a400418a59a94521c71 (diff)
downloaddexon-solidity-eaab71294476f46513678be2e8cad02589d141dc.tar.gz
dexon-solidity-eaab71294476f46513678be2e8cad02589d141dc.tar.zst
dexon-solidity-eaab71294476f46513678be2e8cad02589d141dc.zip
parser: recognize an end of comment of the form `**/` at the end of a multi-line doc comment
This fixes #1433
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityParser.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index a3217f08..1c616ef6 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -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"(