[PATCH] D20369: [ASTMatcher] Fix a ASTMatcher test failure on Windows.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 18 08:15:03 PDT 2016
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20369.57631.patch
Type: text/x-patch
Size: 1073 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/0faf40cc/attachment-0001.bin>
More information about the cfe-commits
mailing list