ADTTests: merge #ifdef checks from r240436.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 24 Jun 2015 17:05:04 +0000 (17:05 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 24 Jun 2015 17:05:04 +0000 (17:05 +0000)
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

unittests/ADT/APSIntTest.cpp

index 44430055e90cb6d93c94f293354170f2d5b5bfbd..a9b3071d13883775dc5b4bd78eafa5edcfd30175 100644 (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