Author: hokein Date: Wed May 18 10:15:12 2016 New Revision: 269936 URL: http://llvm.org/viewvc/llvm-project?rev=269936&view=rev Log: [ASTMatcher] Fix a ASTMatcher test failure on Windows.
Reviewers: alexfh, aaron.ballman Subscribers: thakis, cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D20369 Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp?rev=269936&r1=269935&r2=269936&view=diff ============================================================================== --- cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp (original) +++ cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp Wed May 18 10:15:12 2016 @@ -178,13 +178,14 @@ TEST(EnumConstant, Matches) { } TEST(Matcher, UnresolvedLookupExpr) { - EXPECT_TRUE(matches("template<typename T>" - "T foo() { T a; return a; }" - "template<typename T>" - "void bar() {" - " foo<T>();" - "}", - unresolvedLookupExpr())); + EXPECT_TRUE(matchesConditionally("template<typename T>" + "T foo() { T a; return a; }" + "template<typename T>" + "void bar() {" + " foo<T>();" + "}", + unresolvedLookupExpr(), true, + "-fno-delayed-template-parsing")); } TEST(Matcher, Call) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits