commit | 2355cebe3847acd4ce175e3a88788b8effd93c6e | [log] [tgz] |
---|---|---|
author | Nico Weber <nicolasweber@gmx.de> | Sat Jan 12 05:47:16 2013 +0000 |
committer | Nico Weber <nicolasweber@gmx.de> | Sat Jan 12 05:47:16 2013 +0000 |
tree | 2106bd186b90037876ec7a4b4700e887c47999d3 | |
parent | cc191d1980101bba47d3d67acf782890076fa5c3 [diff] [blame] |
Formatter: * and & are binary operators after ) and ]. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172302 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 9106a1f..e5dbd63 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp
@@ -1014,6 +1014,8 @@ verifyFormat("a * -b;"); verifyFormat("a * ++b;"); verifyFormat("a * --b;"); + verifyFormat("a[4] * b;"); + verifyFormat("f() * b;"); verifyFormat("int *pa = (int *)&a;"); verifyFormat("InvalidRegions[*R] = 0;");