std.cfg: Added a TODO test case
This commit is contained in:
parent
e735376f7d
commit
3dcdd5f264
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue