mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
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. llvm-svn: 240553
This commit is contained in:
parent
4bc40903c7
commit
1b3d959d3c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user