]> granicus.if.org Git - clang/commitdiff
[clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test.
authorAnton Bikineev <ant.bikineev@gmail.com>
Thu, 25 Jul 2019 15:09:37 +0000 (15:09 +0000)
committerAnton Bikineev <ant.bikineev@gmail.com>
Thu, 25 Jul 2019 15:09:37 +0000 (15:09 +0000)
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

unittests/ASTMatchers/ASTMatchersInternalTest.cpp

index 6015825de14d3d24f41cf6553238a2eb3b250c01..5fcf2369136c668540bcb9edea945b63154212ed 100644 (file)
@@ -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) {