// 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( isprint( 'a' ) ); TESTCASE( isprint( 'z' ) ); TESTCASE( isprint( 'A' ) ); TESTCASE( isprint( 'Z' ) ); TESTCASE( isprint( '@' ) ); TESTCASE( ! isprint( '\t' ) ); TESTCASE( ! isprint( '\0' ) ); TESTCASE( isprint( ' ' ) ); return TEST_RESULTS; }