Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
b51a49e0
Commit
b51a49e0
authored
Apr 16, 2020
by
Mark Barolak
Browse files
Merge pull request #2773 from Quuxplusone:replace-noexcept
PiperOrigin-RevId: 305707266
parents
e3f0319d
6ed4e716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googletest/test/googletest-death-test_ex_test.cc
googletest/test/googletest-death-test_ex_test.cc
+1
-1
No files found.
googletest/test/googletest-death-test_ex_test.cc
View file @
b51a49e0
...
@@ -59,7 +59,7 @@ TEST(CxxExceptionDeathTest, ExceptionIsFailure) {
...
@@ -59,7 +59,7 @@ TEST(CxxExceptionDeathTest, ExceptionIsFailure) {
class
TestException
:
public
std
::
exception
{
class
TestException
:
public
std
::
exception
{
public:
public:
const
char
*
what
()
const
throw
()
override
{
return
"exceptional message"
;
}
const
char
*
what
()
const
noexcept
override
{
return
"exceptional message"
;
}
};
};
TEST
(
CxxExceptionDeathTest
,
PrintsMessageForStdExceptions
)
{
TEST
(
CxxExceptionDeathTest
,
PrintsMessageForStdExceptions
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment