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