]> granicus.if.org Git - clang/commitdiff
clang-format: Add another test like r366926
authorNico Weber <nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:15:47 +0000 (17:15 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:15:47 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366929 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index dba8dbc59a7c4305d5b758d864dd69d59234e30a..078c502452663b07a84b30975a11fda0870c3088 100644 (file)
@@ -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"