Skip to content

Commit 8b90b2d

Browse files
committed
posix.cfg: Added more tests.
1 parent 1067cb6 commit 8b90b2d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/cfg/posix.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
#include <wchar.h>
3232
#include <string.h>
3333

34+
int nullPointer_wcsnlen(const wchar_t *s, size_t n)
35+
{
36+
// cppcheck-suppress nullPointer
37+
(void)wcsnlen(NULL, n);
38+
// No warning is expected
39+
return wcsnlen(s, n);
40+
}
41+
3442
int nullPointer_wcswidth(const wchar_t *s, size_t n)
3543
{
3644
// cppcheck-suppress nullPointer

0 commit comments

Comments
 (0)