test/cfg: Improved testing of std.cfg regarding uninitialized variables.

This commit is contained in:
orbitcowboy 2015-09-07 16:57:34 +02:00
parent d88dc3ed3e
commit 03495360d8
3 changed files with 33 additions and 1 deletions

View File

@ -2866,7 +2866,7 @@
</arg>
</function>
<!-- wchar_t wcscat(wchar_t *deststr, const char *srcstr); -->
<function name="wcscat">
<function name="wcscat,std::wcscat">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">

View File

@ -2780,3 +2780,19 @@ void uninivar_setvbuf(void)
// cppcheck-suppress uninitvar
(void)setvbuf(stream,buf,mode,size);
}
void uninivar_strcat(void)
{
char *deststr;
char *srcstr;
// cppcheck-suppress uninitvar
(void)strcat(deststr,srcstr);
}
void uninivar_wcscat(void)
{
wchar_t *deststr;
wchar_t *srcstr;
// cppcheck-suppress uninitvar
(void)wcscat(deststr,srcstr);
}

View File

@ -2104,3 +2104,19 @@ void uninivar_setvbuf(void)
// cppcheck-suppress uninitvar
(void)std::setvbuf(stream,buf,mode,size);
}
void uninivar_strcat(void)
{
char *deststr;
char *srcstr;
// cppcheck-suppress uninitvar
(void)std::strcat(deststr,srcstr);
}
void uninivar_wcscat(void)
{
wchar_t *deststr;
wchar_t *srcstr;
// cppcheck-suppress uninitvar
(void)std::wcscat(deststr,srcstr);
}