diff --git a/clang/unittests/Format/FormatTestComments.cpp b/clang/unittests/Format/FormatTestComments.cpp index 8cdca0eb5900a3..c988a2869e5683 100644 --- a/clang/unittests/Format/FormatTestComments.cpp +++ b/clang/unittests/Format/FormatTestComments.cpp @@ -3650,6 +3650,13 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { format("// x\n" "// y", Style)); + EXPECT_EQ( + "// loooooooooooooooooooooooooooooong\n" + "// commentcomments\n" + "// normal comments", + format("// loooooooooooooooooooooooooooooong commentcomments\n" + "// normal comments", + Style)); Style.SpacesInLineCommentPrefix = {3, 3}; EXPECT_EQ("// Lorem ipsum\n"