projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db913d9
)
clang-format: Add a test that shows that some code I thought was dead is not dead.
author
Nico Weber
<nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:01:57 +0000
(17:01 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:01:57 +0000
(17:01 +0000)
llvm-svn: 366926
clang/unittests/Format/FormatTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/Format/FormatTest.cpp
b/clang/unittests/Format/FormatTest.cpp
index
614e81e
..
dba8dbc
100644
(file)
--- a/
clang/unittests/Format/FormatTest.cpp
+++ b/
clang/unittests/Format/FormatTest.cpp
@@
-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))");