diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-05 10:55:36 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-05 10:55:36 +0000 |
commit | 562463e7a0e4a6478ad8956dc8b271077122a3bf (patch) | |
tree | af336d1d9dd9426a322b455f50e18b71cf4a84a9 /unittests | |
parent | dc293d3fd18c8dc7b89f1b6615745ef078e6be71 (diff) |
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
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |