Added testcase to look at later

This commit is contained in:
Daniel Marjamäki 2008-04-12 10:54:46 +00:00
parent 59c1c16e03
commit bb5276024b
1 changed files with 13 additions and 0 deletions

View File

@ -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" );
*/
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------