std.cfg: Added a TODO test case

This commit is contained in:
orbitcowboy 2022-06-19 10:13:22 +02:00
parent e735376f7d
commit 3dcdd5f264
1 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,17 @@
#include <inttypes.h> #include <inttypes.h>
#include <float.h> #include <float.h>
size_t invalidFunctionArgStr_wcslen(void)
{
const wchar_t terminated0[] = L"ABCDEF49620910";
const wchar_t terminated1[3] = { L'a', L'b', L'\0' };
const wchar_t notTerminated[3] = { L'a', L'b', L'c' };
// TODO: cppcheck-suppress invalidFunctionArgStr
(void) wcslen(notTerminated);
(void) wcslen(terminated0);
return wcslen(terminated1);
}
int invalidFunctionArgStr_strcpn(void) int invalidFunctionArgStr_strcpn(void)
{ {
const char str1[] = "ABCDEF49620910"; const char str1[] = "ABCDEF49620910";