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 70df51b8a9
commit a8cf379826
1 changed files with 2 additions and 2 deletions

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