Disable death tests on platforms which don't support them.
llvm-svn: 160000
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 3f7b5ed..98dbecb 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/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 @@
EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
}, "");
}
+#endif
TEST(NameableDeclaration, MatchesVariousDecls) {
DeclarationMatcher NamedX = nameableDeclaration(hasName("X"));