mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix build when both gtest death tests and LLVM_NODISCARD are available.
llvm-svn: 367495
This commit is contained in:
parent
910badf6bd
commit
e5249e008a
@ -153,8 +153,8 @@ TEST(APSIntTest, FromString) {
|
||||
#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");
|
||||
EXPECT_DEATH((void)APSInt(""), "Invalid string length");
|
||||
EXPECT_DEATH((void)APSInt("1a"), "Invalid character in digit string");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user