diff options
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index fa8ed3828d4..949167c8f56 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4529,6 +4529,14 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("delete *x;", PointerLeft); verifyFormat("STATIC_ASSERT((a & b) == 0);"); verifyFormat("STATIC_ASSERT(0 == (a & b));"); + verifyFormat("template <bool a, bool b> " + "typename t::if<x && y>::type f() {};"); + verifyFormat("template <int *y> f() {};"); + verifyFormat("vector<int *> v;"); + verifyFormat("vector<int *const> v;"); + verifyFormat("vector<int *const **const *> v;"); + verifyFormat("vector<int *volatile> v;"); + verifyFormat("vector<a * b> v;"); } TEST_F(FormatTest, UnderstandsAttributes) { |

