std.cfg: Added more tests for wmemmove() and wmemset().

This commit is contained in:
orbitcowboy 2022-04-22 07:25:27 +02:00
parent 6a0fb05e68
commit b315e8a115
2 changed files with 32 additions and 0 deletions

View File

@ -3664,6 +3664,22 @@ void nullPointer_wmemcmp(const wchar_t* s1, const wchar_t* s2, size_t n)
(void)wmemcmp(s1,s2,n); (void)wmemcmp(s1,s2,n);
} }
void nullPointer_wmemmove(wchar_t* s1, const wchar_t* s2, size_t n)
{
// cppcheck-suppress nullPointer
(void)wmemmove(NULL,s2,n);
// cppcheck-suppress nullPointer
(void)wmemmove(s1,NULL,n);
(void)wmemmove(s1,s2,n);
}
void nullPointer_wmemset(wchar_t* s, wchar_t c, size_t n)
{
// cppcheck-suppress nullPointer
(void)wmemset(NULL,c,n);
(void)wmemset(s,c,n);
}
void nullPointer_memmove(void *s1, void *s2, size_t n) void nullPointer_memmove(void *s1, void *s2, size_t n)
{ {
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer

View File

@ -3619,6 +3619,22 @@ void nullPointer_memmove(void *s1, void *s2, size_t n)
(void)std::memmove(s1,s2,n); (void)std::memmove(s1,s2,n);
} }
void nullPointer_wmemmove(wchar_t* s1, const wchar_t* s2, size_t n)
{
// cppcheck-suppress nullPointer
(void)std::wmemmove(NULL,s2,n);
// cppcheck-suppress nullPointer
(void)std::wmemmove(s1,NULL,n);
(void)std::wmemmove(s1,s2,n);
}
void nullPointer_wmemset(wchar_t* s, wchar_t c, size_t n)
{
// cppcheck-suppress nullPointer
(void)std::wmemset(NULL,c,n);
(void)std::wmemset(s,c,n);
}
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
// <algorithm> // <algorithm>
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////