diff options
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp')
-rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
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<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) { |