ADTTests: merge #ifdef checks from r240436.

This commit merges the #ifdef and #ifndef checks into one #if, as
suggested by Duncan P. N. Exon Smith.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alex Lorenz 2015-06-24 17:05:04 +00:00
parent 1e6b8f552c
commit 0502ac4036

View File

@ -151,15 +151,13 @@ TEST(APSIntTest, FromString) {
EXPECT_EQ(APSInt("-1234").getExtValue(), -1234);
}
#ifdef GTEST_HAS_DEATH_TEST
#ifndef NDEBUG
#if defined(GTEST_HAS_DEATH_TEST) && !defined(NDEBUG)
TEST(APSIntTest, StringDeath) {
EXPECT_DEATH(APSInt(""), "Invalid string length");
EXPECT_DEATH(APSInt("1a"), "Invalid character in digit string");
}
#endif
#endif
} // end anonymous namespace