From 4c3bb8d7ed1a34e5e4ee33dbb97c1725cc2193ba Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 Jul 2019 17:01:57 +0000 Subject: [PATCH] clang-format: Add a test that shows that some code I thought was dead is not dead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366926 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 614e81e333..dba8dbc59a 100644 --- a/unittests/Format/FormatTest.cpp +++ b/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))"); -- 2.40.0