diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:47:16 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:47:16 +0000 |
commit | 2355cebe3847acd4ce175e3a88788b8effd93c6e (patch) | |
tree | 2106bd186b90037876ec7a4b4700e887c47999d3 /unittests/Format/FormatTest.cpp | |
parent | cc191d1980101bba47d3d67acf782890076fa5c3 (diff) |
Formatter: * and & are binary operators after ) and ].
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 9106a1fc7f..e5dbd63020 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1014,6 +1014,8 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { 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;"); |