Added a regression test for the change in r196380

llvm-svn: 196384
This commit is contained in:
Alexander Kornienko 2013-12-04 13:58:27 +00:00
parent ea66007938
commit 06dd15a01a
1 changed files with 8 additions and 0 deletions

View 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;