X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=4cfc6660b4c659d46ec5598005998592183c2176;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=14bc18321efff3ee4d5caf868663f37687c90ba5;hpb=b08f4b52b1cd1f7a9553c0f357a7c90859fa3e73;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index 14bc183..4cfc666 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_exit( int ) This file is part of the Public Domain C Library (PDCLib). @@ -14,7 +12,8 @@ #ifndef REGTEST #include <_PDCLIB_glue.h> -#include + +extern void _exit( int status ) _PDCLIB_NORETURN; void _PDCLIB_Exit( int status ) { @@ -28,7 +27,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; }