// 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 s[] = L"xxxxabcde"; TESTCASE( wmemmove( s, s + 4, 5 ) == s ); TESTCASE( s[0] == L'a' ); TESTCASE( s[4] == L'e' ); TESTCASE( s[5] == L'b' ); TESTCASE( wmemmove( s + 4, s, 5 ) == s + 4 ); TESTCASE( s[4] == L'a' ); return TEST_RESULTS; }