diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-08-29 17:23:14 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-08-29 17:23:14 +0000 |
commit | 6ac852d15367db402f94828810c9483f76492ac5 (patch) | |
tree | 2a8b9acf67fd59bb358b56188d80bef98ccc21fb /gcc/selftest.h | |
parent | 9144eabb893bf3cb4bad4c2447e8b56c5db7f577 (diff) | |
download | gcc-6ac852d15367db402f94828810c9483f76492ac5.zip gcc-6ac852d15367db402f94828810c9483f76492ac5.tar.gz gcc-6ac852d15367db402f94828810c9483f76492ac5.tar.bz2 |
selftest.h: mark failure functions with ATTRIBUTE_NORETURN.
gcc/ChangeLog:
* selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
(selftest::fail_formatted): Likewise.
From-SVN: r239832
Diffstat (limited to 'gcc/selftest.h')
-rw-r--r-- | gcc/selftest.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/selftest.h b/gcc/selftest.h index b073ed6..e2d7356 100644 --- a/gcc/selftest.h +++ b/gcc/selftest.h @@ -56,12 +56,13 @@ extern void pass (const location &loc, const char *msg); /* Report the failed outcome of some aspect of the test and abort. */ -extern void fail (const location &loc, const char *msg); +extern void fail (const location &loc, const char *msg) + ATTRIBUTE_NORETURN; /* As "fail", but using printf-style formatted output. */ extern void fail_formatted (const location &loc, const char *fmt, ...) - ATTRIBUTE_PRINTF_2; + ATTRIBUTE_PRINTF_2 ATTRIBUTE_NORETURN; /* Implementation detail of ASSERT_STREQ. */ |