// S : tags libc c // S : expect --result valid // S : cc -o test.bc -D_PDCLIB_BUILD -DTEST $file // S : verify -o nofail:malloc -o nofail:vfs test.bc #include #include "_PDCLIB_test.h" int main( void ) { TESTCASE( isdigit( '0' ) ); TESTCASE( isdigit( '9' ) ); TESTCASE( ! isdigit( ' ' ) ); TESTCASE( ! isdigit( 'a' ) ); TESTCASE( ! isdigit( '@' ) ); return TEST_RESULTS; }