aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityScanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SolidityScanner.cpp')
-rw-r--r--SolidityScanner.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/SolidityScanner.cpp b/SolidityScanner.cpp
index 355ea9e2..b7942d29 100644
--- a/SolidityScanner.cpp
+++ b/SolidityScanner.cpp
@@ -227,6 +227,13 @@ BOOST_AUTO_TEST_CASE(documentation_comment_before_eos)
BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), "");
}
+BOOST_AUTO_TEST_CASE(empty_multiline_comment)
+{
+ Scanner scanner(CharStream("/**/"));
+ BOOST_CHECK_EQUAL(scanner.getCurrentToken(), Token::EOS);
+ BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), "");
+}
+
BOOST_AUTO_TEST_CASE(empty_multiline_documentation_comment_before_eos)
{
Scanner scanner(CharStream("/***/"));