// 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 ) { wchar_t const xxxxx[] = L"xxxxx"; TESTCASE( wmemcmp( wabcde, wabcdx, 5 ) < 0 ); TESTCASE( wmemcmp( wabcde, wabcdx, 4 ) == 0 ); TESTCASE( wmemcmp( wabcde, xxxxx, 0 ) == 0 ); TESTCASE( wmemcmp( xxxxx, wabcde, 1 ) > 0 ); return 0; }