diff options
-rw-r--r-- | unittests/ASTMatchers/ASTMatchersTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp index 3f7b5ed39d..98dbecb72f 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -16,6 +16,7 @@ namespace clang { namespace ast_matchers { +#if GTEST_HAS_DEATH_TEST TEST(HasNameDeathTest, DiesOnEmptyName) { ASSERT_DEBUG_DEATH({ DeclarationMatcher HasEmptyName = record(hasName("")); @@ -29,6 +30,7 @@ TEST(IsDerivedFromDeathTest, DiesOnEmptyBaseName) { EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty)); }, ""); } +#endif TEST(NameableDeclaration, MatchesVariousDecls) { DeclarationMatcher NamedX = nameableDeclaration(hasName("X")); |