Added testcase to look at later
This commit is contained in:
parent
59c1c16e03
commit
bb5276024b
13
tests.cpp
13
tests.cpp
|
@ -594,6 +594,19 @@ static void memleak_in_function()
|
||||||
check( CheckMemoryLeak, __LINE__, test13, "" );
|
check( CheckMemoryLeak, __LINE__, test13, "" );
|
||||||
|
|
||||||
|
|
||||||
|
/* TODO
|
||||||
|
const char test14[] = "struct Fred\n"
|
||||||
|
"{\n"
|
||||||
|
" char *str;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"void f()\n"
|
||||||
|
"{\n"
|
||||||
|
" Fred f;\n"
|
||||||
|
" f.str = strdup(\"aa\");\n"
|
||||||
|
"}\n";
|
||||||
|
check( CheckMemoryLeak, __LINE__, test14, "[test.cpp:9]: Memory leak: f.str\n" );
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue