From c913d1f2d6d8fcd26131390322c927743c5677a8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 Jul 2019 17:15:47 +0000 Subject: [PATCH] clang-format: Add another test like r366926 llvm-svn: 366929 --- clang/unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index dba8dbc..078c502 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -6918,6 +6918,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyIndependentOfContext("if (*b[i])"); verifyIndependentOfContext("if (int *a = (&b))"); verifyIndependentOfContext("while (int *a = &b)"); + verifyIndependentOfContext("while (a * (b * c))"); verifyIndependentOfContext("size = sizeof *a;"); verifyIndependentOfContext("if (a && (b = c))"); verifyFormat("void f() {\n" -- 2.7.4