29 lines
602 B
C
29 lines
602 B
C
#include "../hedley.h"
|
|
|
|
#if defined(HEDLEY_IAR_VERSION)
|
|
# pragma diag_suppress=Pe082
|
|
#elif \
|
|
(defined(HEDLEY_TI_VERSION) && !HEDLEY_TI_VERSION_CHECK(18,1,0)) || \
|
|
(defined(HEDLEY_TI_CL6X_VERSION) && !HEDLEY_TI_VERSION_CHECK(8,3,0))
|
|
/* exit() was not annotated with noreturn */
|
|
# pragma diag_suppress 1585
|
|
#endif
|
|
|
|
#if defined(_MSC_VER)
|
|
HEDLEY_DIAGNOSTIC_PUSH
|
|
#pragma warning(disable:4255 4668)
|
|
#include <stdlib.h>
|
|
HEDLEY_DIAGNOSTIC_POP
|
|
#else
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
HEDLEY_NO_RETURN
|
|
static void
|
|
test_no_return(int code) {
|
|
exit(code);
|
|
}
|
|
|
|
int main(void) {
|
|
test_no_return(0);
|
|
}
|