r263041 - Use an explicit instantiation to work around delayed template parsing for MSVC-built bots.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 10:07:17 PST 2016


Author: aaronballman
Date: Wed Mar  9 12:07:17 2016
New Revision: 263041

URL: http://llvm.org/viewvc/llvm-project?rev=263041&view=rev
Log:
Use an explicit instantiation to work around delayed template parsing for MSVC-built bots.

Modified:
    cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp

Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp?rev=263041&r1=263040&r2=263041&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp Wed Mar  9 12:07:17 2016
@@ -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) {




More information about the cfe-commits mailing list