forked from OSchip/llvm-project
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:
parent
db913d9618
commit
a659de77e7
|
@ -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))");
|
||||
|
|
Loading…
Reference in New Issue