diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-07-24 17:01:57 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-07-24 17:01:57 +0000 |
commit | a659de77e727d9743fe3faff1286856f598a6911 (patch) | |
tree | d1ef8c1892dfb4fb875bb9b7fb5074102504d86e /clang/unittests/Format/FormatTest.cpp | |
parent | db913d9618cbf6c0bbfdef58b85a4ccd6e56efae (diff) | |
download | bcm5719-llvm-a659de77e727d9743fe3faff1286856f598a6911.tar.gz bcm5719-llvm-a659de77e727d9743fe3faff1286856f598a6911.zip |
clang-format: Add a test that shows that some code I thought was dead is not dead.
llvm-svn: 366926
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 614e81e333a..dba8dbc59a7 100644 --- 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))"); |