Skip to content

Commit

Permalink
gtest-death-test: add 'noreturn'
Browse files Browse the repository at this point in the history
  • Loading branch information
matdibu committed Jul 20, 2022
1 parent 7735334 commit 6172058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion googletest/src/gtest-death-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW };
// message is propagated back to the parent process. Otherwise, the
// message is simply printed to stderr. In either case, the program
// then exits with status 1.
static void DeathTestAbort(const std::string& message) {
[[noreturn]] static void DeathTestAbort(const std::string& message) {
// On a POSIX system, this function may be called from a threadsafe-style
// death test child process, which operates on a very small stack. Use
// the heap for any additional non-minuscule memory requirements.
Expand Down

0 comments on commit 6172058

Please sign in to comment.