clang-format: Add a test that shows that some code I thought was dead is not dead.

llvm-svn: 366926
This commit is contained in:
Nico Weber 2019-07-24 17:01:57 +00:00
parent db913d9618
commit a659de77e7
1 changed files with 1 additions and 0 deletions

View File

@ -6913,6 +6913,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
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))");