From 8b90b2d0fdbb9d5d86018622f9a360841c730fce Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 20 Apr 2022 15:27:14 +0200 Subject: [PATCH] posix.cfg: Added more tests. --- test/cfg/posix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 18c67233f..13ccc64ac 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -31,6 +31,14 @@ #include #include +int nullPointer_wcsnlen(const wchar_t *s, size_t n) +{ + // cppcheck-suppress nullPointer + (void)wcsnlen(NULL, n); + // No warning is expected + return wcsnlen(s, n); +} + int nullPointer_wcswidth(const wchar_t *s, size_t n) { // cppcheck-suppress nullPointer