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

Alexander Kornienko alexfh at google.com
Wed Jan 16 03:45:16 PST 2013


Author: alexfh
Date: Wed Jan 16 05:45:16 2013
New Revision: 172607

URL: http://llvm.org/viewvc/llvm-project?rev=172607&view=rev
Log:
Clang Format: A couple of tests for the trailing stuff case

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=172607&r1=172606&r2=172607&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Jan 16 05:45:16 2013
@@ -1213,6 +1213,12 @@
 //===----------------------------------------------------------------------===//
 
 TEST_F(FormatTest, IncorrectCodeTrailingStuff) {
+  verifyFormat("void f() { return; }\n42");
+  verifyFormat("void f() {\n"
+               "  if (0)\n"
+               "    return;\n"
+               "}\n"
+               "42");
   verifyFormat("void f() { return }\n42");
   verifyFormat("void f() {\n"
                "  if (0)\n"





More information about the cfe-commits mailing list