r221339 - clang-format: Add test to prevent regression in r221125.

Daniel Jasper djasper at google.com
Wed Nov 5 02:55:36 PST 2014


Author: djasper
Date: Wed Nov  5 04:55:36 2014
New Revision: 221339

URL: http://llvm.org/viewvc/llvm-project?rev=221339&view=rev
Log:
clang-format: Add test to prevent regression in r221125.

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=221339&r1=221338&r2=221339&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Nov  5 04:55:36 2014
@@ -1964,7 +1964,8 @@ TEST_F(FormatTest, FormatsEnum) {
   verifyFormat("enum E { // comment\n"
                "  ONE,\n"
                "  TWO\n"
-               "};");
+               "};\n"
+               "int i;");
 }
 
 TEST_F(FormatTest, FormatsEnumsWithErrors) {





More information about the cfe-commits mailing list