From: Anton Bikineev Date: Thu, 25 Jul 2019 15:09:37 +0000 (+0000) Subject: [clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6c6faa2b4d8a96dc6a383e93e61a4fd27eb8140;p=clang [clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test. The semantics of an empty basename passed to isDerivedFrom matchers changed in r367022, so this test is no longer relevant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367026 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersInternalTest.cpp b/unittests/ASTMatchers/ASTMatchersInternalTest.cpp index 6015825de1..5fcf236913 100644 --- a/unittests/ASTMatchers/ASTMatchersInternalTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersInternalTest.cpp @@ -32,13 +32,6 @@ TEST(HasNameDeathTest, DiesOnEmptyPattern) { EXPECT_TRUE(notMatches("class X {};", HasEmptyName)); }, ""); } - -TEST(IsDerivedFromDeathTest, DiesOnEmptyBaseName) { - ASSERT_DEBUG_DEATH({ - DeclarationMatcher IsDerivedFromEmpty = cxxRecordDecl(isDerivedFrom("")); - EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty)); - }, ""); -} #endif TEST(ConstructVariadic, MismatchedTypes_Regression) {