1
0
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:
Richard Smith 2019-07-31 23:37:24 +00:00
parent 910badf6bd
commit e5249e008a

View File

@ -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