From: Haojian Wu Date: Wed, 18 May 2016 15:15:12 +0000 (+0000) Subject: [ASTMatcher] Fix a ASTMatcher test failure on Windows. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e147f773f42a409da60051af35a39109bf2315f6;p=clang [ASTMatcher] Fix a ASTMatcher test failure on Windows. Reviewers: alexfh, aaron.ballman Subscribers: thakis, cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D20369 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269936 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersNodeTest.cpp b/unittests/ASTMatchers/ASTMatchersNodeTest.cpp index 8fd51eb9be..9d7437e446 100644 --- a/unittests/ASTMatchers/ASTMatchersNodeTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersNodeTest.cpp @@ -178,13 +178,14 @@ TEST(EnumConstant, Matches) { } TEST(Matcher, UnresolvedLookupExpr) { - EXPECT_TRUE(matches("template" - "T foo() { T a; return a; }" - "template" - "void bar() {" - " foo();" - "}", - unresolvedLookupExpr())); + EXPECT_TRUE(matchesConditionally("template" + "T foo() { T a; return a; }" + "template" + "void bar() {" + " foo();" + "}", + unresolvedLookupExpr(), true, + "-fno-delayed-template-parsing")); } TEST(Matcher, Call) {