From: Nico Weber Date: Wed, 24 Jul 2019 17:15:47 +0000 (+0000) Subject: clang-format: Add another test like r366926 X-Git-Tag: llvmorg-11-init~13661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c913d1f2d6d8fcd26131390322c927743c5677a8;p=platform%2Fupstream%2Fllvm.git clang-format: Add another test like r366926 llvm-svn: 366929 --- 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"