From: Aaron Ballman Date: Wed, 9 Mar 2016 18:07:17 +0000 (+0000) Subject: Use an explicit instantiation to work around delayed template parsing for MSVC-built... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2e2605a5665587116181091d1ddc42972c8548a;p=clang Use an explicit instantiation to work around delayed template parsing for MSVC-built bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp index 63d080563e..63dc1a8b64 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -2590,9 +2590,9 @@ TEST(Matcher, Initializers) { TEST(Matcher, ParenListExpr) { EXPECT_TRUE( - matches( - " template class foo { void bar() { foo X(*this); } }; ", - varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); + matches("template class foo { void bar() { foo X(*this); } };" + "template class foo;", + varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); } TEST(Matcher, StmtExpr) {