Use an explicit instantiation to work around delayed template parsing for MSVC-built bots.
llvm-svn: 263041
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 63d0805..63dc1a8 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -2590,9 +2590,9 @@
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) {