hokein updated this revision to Diff 57631. hokein added a comment. Only use -fno-delayed-template-parsing in the testcase.
http://reviews.llvm.org/D20369 Files: unittests/ASTMatchers/ASTMatchersNodeTest.cpp Index: unittests/ASTMatchers/ASTMatchersNodeTest.cpp =================================================================== --- unittests/ASTMatchers/ASTMatchersNodeTest.cpp +++ unittests/ASTMatchers/ASTMatchersNodeTest.cpp @@ -178,13 +178,14 @@ } 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) {
Index: unittests/ASTMatchers/ASTMatchersNodeTest.cpp =================================================================== --- unittests/ASTMatchers/ASTMatchersNodeTest.cpp +++ unittests/ASTMatchers/ASTMatchersNodeTest.cpp @@ -178,13 +178,14 @@ } 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