Skip to content

Commit

Permalink
[ASTMatcher] Fix a ASTMatcher test failure on Windows.
Browse files Browse the repository at this point in the history
Reviewers: alexfh, aaron.ballman

Subscribers: thakis, cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D20369

llvm-svn: 269936
  • Loading branch information
hokein committed May 18, 2016
1 parent 2ee10e6 commit da5b113
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da5b113

Please sign in to comment.