aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityParser.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-01 19:40:52 +0800
committerGitHub <noreply@github.com>2016-12-01 19:40:52 +0800
commit5d1d81d270430815c15fd09f612f6299ddda68ff (patch)
tree2c239f020f7a9e431f712a91fa9da4ec787761c9 /test/libsolidity/SolidityParser.cpp
parent67f274f66c65058c784e610767144cfe32a7dd2c (diff)
parent610027cd26dda1cded357f62585e75eed3cb0e48 (diff)
downloaddexon-solidity-5d1d81d270430815c15fd09f612f6299ddda68ff.tar.gz
dexon-solidity-5d1d81d270430815c15fd09f612f6299ddda68ff.tar.zst
dexon-solidity-5d1d81d270430815c15fd09f612f6299ddda68ff.zip
Merge pull request #1454 from ethereum/end-of-comment
parser: recognize an end of comment of the form `**/`
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-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"(