X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=5c95fca8c03379452931b1fda5beaa6b9e38afb3;hb=81f4c957d2f820d9340d90d5b650cbbed054caa0;hp=14bc18321efff3ee4d5caf868663f37687c90ba5;hpb=d9dcf16664c81809258992e1653ecb68c8079974;p=pdclib.old diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index 14bc183..5c95fca 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -14,7 +14,8 @@ #ifndef REGTEST #include <_PDCLIB_glue.h> -#include + +extern void _exit( int status ) _PDCLIB_NORETURN; void _PDCLIB_Exit( int status ) { @@ -28,7 +29,9 @@ void _PDCLIB_Exit( int status ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); return TEST_RESULTS; }