From: Manuel Klimek Date: Mon, 21 Jan 2013 14:16:56 +0000 (+0000) Subject: Add regression test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fbe0087d2558c509dcfdb4b593b844625c2dd3d;p=clang Add regression test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173042 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 4725889247..f8c454b7bc 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1573,6 +1573,13 @@ TEST_F(FormatTest, MergeHandlingInTheFaceOfPreprocessorDirectives) { " f(); \\\n" " if (true)\n" "g();", ShortMergedIf); + verifyFormat("{\n" + "#ifdef A\n" + " // Comment\n" + " if (true) continue;\n" + "#endif\n" + " // Comment\n" + " if (true) continue;", ShortMergedIf); } //===----------------------------------------------------------------------===//