From da5b1131de4a3007ea25fc1bfffa5199afccd5ec Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 18 May 2016 15:15:12 +0000 Subject: [ASTMatcher] Fix a ASTMatcher test failure on Windows. Reviewers: alexfh, aaron.ballman Subscribers: thakis, cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D20369 llvm-svn: 269936 --- clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp') diff --git a/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp index 8fd51eb9be7..9d7437e446d 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp +++ b/clang/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) { -- cgit v1.2.3