diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/unittests/ADT/APSIntTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/unittests/ADT/APSIntTest.cpp b/llvm/unittests/ADT/APSIntTest.cpp index 44430055e90..a9b3071d138 100644 --- a/llvm/unittests/ADT/APSIntTest.cpp +++ b/llvm/unittests/ADT/APSIntTest.cpp @@ -151,8 +151,7 @@ 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"); @@ -160,6 +159,5 @@ TEST(APSIntTest, StringDeath) { } #endif -#endif } // end anonymous namespace |

