summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-10-12 13:32:56 +0000
committerDaniel Jasper <djasper@google.com>2013-10-12 13:32:56 +0000
commit53bd167c60dca5d0e59c0069d2644aecc2151985 (patch)
tree801fd995836b414676e044c6eb0f0795d4e40f99 /clang/unittests/Format/FormatTest.cpp
parent7f5823844ae92f64f31db8af2ef3173ecf1349f0 (diff)
downloadbcm5719-llvm-53bd167c60dca5d0e59c0069d2644aecc2151985.tar.gz
bcm5719-llvm-53bd167c60dca5d0e59c0069d2644aecc2151985.zip
clang-format: Fix assertion on unterminated #ifs.
llvm-svn: 192535
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 5fea8e781eb..6e8179a3068 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2317,6 +2317,8 @@ TEST_F(FormatTest, LayoutStatementsAroundPreprocessorDirectives) {
" x();\n"
"}",
getLLVMStyleWithColumns(28));
+ verifyFormat("#if 1\n"
+ "int i;");
}
TEST_F(FormatTest, LayoutBlockInsideParens) {
OpenPOWER on IntegriCloud