Author: nico Date: Wed Jul 24 10:01:57 2019 New Revision: 366926 URL: http://llvm.org/viewvc/llvm-project?rev=366926&view=rev Log: clang-format: Add a test that shows that some code I thought was dead is not dead.
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=366926&r1=366925&r2=366926&view=diff ============================================================================== --- cfe/trunk/unittests/Format/FormatTest.cpp (original) +++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Jul 24 10:01:57 2019 @@ -6913,6 +6913,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStar verifyIndependentOfContext("if (int *a = &b)"); verifyIndependentOfContext("if (int &a = *b)"); verifyIndependentOfContext("if (a & b[i])"); + verifyIndependentOfContext("if (a * (b * c))"); verifyIndependentOfContext("if (a::b::c::d & b[i])"); verifyIndependentOfContext("if (*b[i])"); verifyIndependentOfContext("if (int *a = (&b))"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits