[cfe-commits] r173042 - /cfe/trunk/unittests/Format/FormatTest.cpp

Manuel Klimek klimek at google.com
Mon Jan 21 06:16:56 PST 2013


Author: klimek
Date: Mon Jan 21 08:16:56 2013
New Revision: 173042

URL: http://llvm.org/viewvc/llvm-project?rev=173042&view=rev
Log:
Add regression test.

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=173042&r1=173041&r2=173042&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Mon Jan 21 08:16:56 2013
@@ -1573,6 +1573,13 @@
                "  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);
 }
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list