From: Daniel Jasper Date: Wed, 5 Nov 2014 10:55:36 +0000 (+0000) Subject: clang-format: Add test to prevent regression in r221125. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=562463e7a0e4a6478ad8956dc8b271077122a3bf;p=clang clang-format: Add test to prevent regression in r221125. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 9e63bd11bb..b94d0f5f98 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1964,7 +1964,8 @@ TEST_F(FormatTest, FormatsEnum) { verifyFormat("enum E { // comment\n" " ONE,\n" " TWO\n" - "};"); + "};\n" + "int i;"); } TEST_F(FormatTest, FormatsEnumsWithErrors) {