r367026 - [clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test.
Anton Bikineev via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 08:09:37 PDT 2019
Author: antonbikineev
Date: Thu Jul 25 08:09:37 2019
New Revision: 367026
URL: http://llvm.org/viewvc/llvm-project?rev=367026&view=rev
Log:
[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.
Modified:
cfe/trunk/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersInternalTest.cpp?rev=367026&r1=367025&r2=367026&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersInternalTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersInternalTest.cpp Thu Jul 25 08:09:37 2019
@@ -32,13 +32,6 @@ TEST(HasNameDeathTest, DiesOnEmptyPatter
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) {
More information about the cfe-commits
mailing list