]> granicus.if.org Git - clang/commitdiff
Added a regression test for the change in r196380
authorAlexander Kornienko <alexfh@google.com>
Wed, 4 Dec 2013 13:58:27 +0000 (13:58 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 4 Dec 2013 13:58:27 +0000 (13:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196384 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index f5a0bdd6341827d52fc4af85ec9fe7e50b1e5b9d..b7b6b832f425b9e3415fa8d2ae4a951cee468e45 100644 (file)
@@ -4891,6 +4891,14 @@ TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) {
 
   verifyFormat("void f() {}", getLLVMStyleWithColumns(11));
   verifyFormat("void f() {\n}", getLLVMStyleWithColumns(10));
+  verifyFormat("class C {\n"
+               "  C()\n"
+               "      : iiiiiiii(nullptr),\n"
+               "        kkkkkkk(nullptr),\n"
+               "        mmmmmmm(nullptr),\n"
+               "        nnnnnnn(nullptr) {}\n"
+               "};",
+               getGoogleStyle());
 
   FormatStyle NoColumnLimit = getLLVMStyle();
   NoColumnLimit.ColumnLimit = 0;