std.cfg: Added a test for tmpfile().
This commit is contained in:
parent
d0606844b7
commit
4a9176f83c
|
@ -104,6 +104,13 @@ void arrayIndexOutOfBounds()
|
|||
free(pAlloc1);
|
||||
}
|
||||
|
||||
void resourceLeak_tmpfile(void)
|
||||
{
|
||||
// cppcheck-suppress unreadVariable
|
||||
FILE * fp = tmpfile();
|
||||
// cppcheck-suppress resourceLeak
|
||||
}
|
||||
|
||||
// memory leak
|
||||
|
||||
void ignoreleak(void)
|
||||
|
|
Loading…
Reference in New Issue