Author: klimek
Date: Mon Jan 14 04:58:01 2013
New Revision: 172396

URL: http://llvm.org/viewvc/llvm-project?rev=172396&view=rev
Log:
Adds some more tests for * and &.

While reviewing r172303 I noticed that I wasn't sure whether we still
format those correctly and didn't see any tests.

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=172396&r1=172395&r2=172396&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Mon Jan 14 04:58:01 2013
@@ -1074,6 +1074,12 @@
   verifyGoogleFormat("A<int**, int**> a;");
   verifyGoogleFormat("f(b ? *c : *d);");
   verifyGoogleFormat("int a = b ? *c : *d;");
+
+  verifyFormat("a = *(x + y);");
+  verifyFormat("a = &(x + y);");
+  verifyFormat("*(x + y).call();");
+  verifyFormat("&(x + y)->call();");
+  verifyFormat("&(*I).first");
 }
 
 TEST_F(FormatTest, FormatsCasts) {


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to