mirror of
https://github.com/google/googletest.git
synced 2025-04-05 05:25:03 +00:00
Merge pull request #4323 from pgawro:gtest_ExpectThrowTest_DoesNotGenerateUnreachableCodeWarning
PiperOrigin-RevId: 553485739 Change-Id: I6581215e6db514397177af39381eea4d121f32bd
This commit is contained in:
commit
455fcb7773
1 changed files with 1 additions and 1 deletions
|
@ -4113,7 +4113,7 @@ TEST(ExpectThrowTest, DoesNotGenerateUnreachableCodeWarning) {
|
|||
|
||||
EXPECT_THROW(throw 1, int);
|
||||
EXPECT_NONFATAL_FAILURE(EXPECT_THROW(n++, int), "");
|
||||
EXPECT_NONFATAL_FAILURE(EXPECT_THROW(throw 1, const char*), "");
|
||||
EXPECT_NONFATAL_FAILURE(EXPECT_THROW(throw n, const char*), "");
|
||||
EXPECT_NO_THROW(n++);
|
||||
EXPECT_NONFATAL_FAILURE(EXPECT_NO_THROW(throw 1), "");
|
||||
EXPECT_ANY_THROW(throw 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue