std.cfg: Added a test for tmpfile().

This commit is contained in:
orbitcowboy 2019-05-17 16:02:48 +02:00
parent d0606844b7
commit 4a9176f83c
1 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,13 @@ void arrayIndexOutOfBounds()
free(pAlloc1); free(pAlloc1);
} }
void resourceLeak_tmpfile(void)
{
// cppcheck-suppress unreadVariable
FILE * fp = tmpfile();
// cppcheck-suppress resourceLeak
}
// memory leak // memory leak
void ignoreleak(void) void ignoreleak(void)