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