mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e6b8f552c
commit
0502ac4036
@ -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…
x
Reference in New Issue
Block a user