[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:21:40 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL269936: [ASTMatcher] Fix a ASTMatcher test failure on Windows. (authored by hokein).

Changed prior to commit:
  http://reviews.llvm.org/D20369?vs=57631&id=57633#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D20369

Files:
  cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp

Index: cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
===================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
+++ cfe/trunk/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.57633.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/4bcde9cd/attachment-0001.bin>


More information about the cfe-commits mailing list