// 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( toupper( 'a' ) == 'A' ); TESTCASE( toupper( 'z' ) == 'Z' ); TESTCASE( toupper( 'A' ) == 'A' ); TESTCASE( toupper( 'Z' ) == 'Z' ); TESTCASE( toupper( '@' ) == '@' ); TESTCASE( toupper( '[' ) == '[' ); return TEST_RESULTS; }