summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 63d080563e4..63dc1a8b649 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -2590,9 +2590,9 @@ TEST(Matcher, Initializers) {
TEST(Matcher, ParenListExpr) {
EXPECT_TRUE(
- matches(
- " template<typename T> class foo { void bar() { foo X(*this); } }; ",
- varDecl(hasInitializer(parenListExpr(has(unaryOperator()))))));
+ matches("template<typename T> class foo { void bar() { foo X(*this); } };"
+ "template class foo<int>;",
+ varDecl(hasInitializer(parenListExpr(has(unaryOperator()))))));
}
TEST(Matcher, StmtExpr) {
OpenPOWER on IntegriCloud