selftest.h: mark failure functions with ATTRIBUTE_NORETURN.

gcc/ChangeLog:
	* selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
	(selftest::fail_formatted): Likewise.

From-SVN: r239832
This commit is contained in:
David Malcolm 2016-08-29 17:23:14 +00:00 committed by David Malcolm
parent 9144eabb89
commit 6ac852d153
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-08-29 David Malcolm <dmalcolm@redhat.com>
* selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
(selftest::fail_formatted): Likewise.
2016-08-29 David Malcolm <dmalcolm@redhat.com>
* input.c (make_location): Call get_start and get_finish

View File

@ -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. */