X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;fp=platform%2Fposix%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;h=6efed712769a008e3afd51243b1d62406450d7e3;hb=9fcf1b27fc705cc131b258478d95ce9de65aabc0;hp=5c95fca8c03379452931b1fda5beaa6b9e38afb3;hpb=f9ee8785d3c18603033ffbf7099f2a032186f2f9;p=pdclib.old diff --git a/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c b/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c index 5c95fca..6efed71 100644 --- a/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c +++ b/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c @@ -15,7 +15,7 @@ #ifndef REGTEST #include <_PDCLIB_glue.h> -extern void _exit( int status ) _PDCLIB_NORETURN; +extern void _exit( int status ) _PDCLIB_noreturn; void _PDCLIB_Exit( int status ) { @@ -29,9 +29,11 @@ void _PDCLIB_Exit( int status ) int main( void ) { +#ifndef REGTEST int UNEXPECTED_RETURN = 0; _PDCLIB_Exit( 0 ); TESTCASE( UNEXPECTED_RETURN ); +#endif return TEST_RESULTS; }