diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:50:48 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-12 05:50:48 +0000 |
commit | 5e9f91c342f8efffe0423d516997ddbc408c9f53 (patch) | |
tree | 7d8d65b98250928e42e15df2fce8f9d704ed959f /unittests/Format/FormatTest.cpp | |
parent | 2355cebe3847acd4ce175e3a88788b8effd93c6e (diff) |
Formatter: * and & are binary operators before ( and [.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index e5dbd63020..4b3297db3d 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1016,6 +1016,9 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("a * --b;"); verifyFormat("a[4] * b;"); verifyFormat("f() * b;"); + verifyFormat("a * [self dostuff];"); + verifyFormat("a * (a + b);"); + verifyFormat("(a *)(a + b);"); verifyFormat("int *pa = (int *)&a;"); verifyFormat("InvalidRegions[*R] = 0;"); |