summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-03-09 18:07:17 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-03-09 18:07:17 +0000
commit2648d42ecc80fab801b759c5b30da72a726c0223 (patch)
tree9f1a17e578581f5125b67e428714d28295aca7a9 /clang/unittests/ASTMatchers/ASTMatchersTest.cpp
parent599d77246db07b436c3b2b46b2e7d2dc3cb67578 (diff)
downloadbcm5719-llvm-2648d42ecc80fab801b759c5b30da72a726c0223.tar.gz
bcm5719-llvm-2648d42ecc80fab801b759c5b30da72a726c0223.zip
Use an explicit instantiation to work around delayed template parsing for MSVC-built bots.
llvm-svn: 263041
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
-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