summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorMatei Dibu <matdibu@protonmail.com>2022-07-20 16:16:51 (GMT)
committerMatei Dibu <matdibu@protonmail.com>2022-07-20 16:16:51 (GMT)
commit61720589cbef9707b3c5247d02141a7c31e2876f (patch)
tree57157d983f41c5529951325287cc14d85d4d620c /googletest/src
parent7735334a46da480a749945c0f645155d90d73855 (diff)
downloadgoogletest-61720589cbef9707b3c5247d02141a7c31e2876f.zip
googletest-61720589cbef9707b3c5247d02141a7c31e2876f.tar.gz
googletest-61720589cbef9707b3c5247d02141a7c31e2876f.tar.bz2
gtest-death-test: add 'noreturn'refs/pull/3951/head
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest-death-test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc
index e6abc62..d549e83 100644
--- a/googletest/src/gtest-death-test.cc
+++ b/googletest/src/gtest-death-test.cc
@@ -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.