The destructor name should be matched to ~Foo instead of Foo.
llvm-svn: 258077
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 5fde0ff..1e5401d 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -1815,10 +1815,10 @@
}
TEST(IsDefaulted, MatchesDefaultedFunctionDeclarations) {
- EXPECT_TRUE(
- notMatches("class A { ~A(); };", functionDecl(hasName("A"), isDefaulted())));
+ EXPECT_TRUE(notMatches("class A { ~A(); };",
+ functionDecl(hasName("~A"), isDefaulted())));
EXPECT_TRUE(matches("class B { ~B() = default; };",
- functionDecl(hasName("B"), isDefaulted())));
+ functionDecl(hasName("~B"), isDefaulted())));
}
TEST(IsDeleted, MatchesDeletedFunctionDeclarations) {