Test: Updated 'testmemcheck4' and 'testmemcheck5' (continue/break)

This commit is contained in:
Daniel Marjamäki 2007-05-20 06:36:47 +00:00
parent 7e54a6af54
commit c7cc0d0f9c
4 changed files with 15 additions and 1 deletions

View File

@ -1 +1 @@
[testmemcheck4\testmemcheck4.cpp:10]: Memory leak:str
[testmemcheck4\testmemcheck4.cpp:9]: Memory leak:str

View File

@ -7,6 +7,7 @@ void f()
char *str = strdup("hello");
if (condition)
continue;
free(str);
}
}

0
testmemcheck5/err.msg Normal file
View File

View File

@ -0,0 +1,13 @@
void f()
{
char *str = strdup("hello");
while (condition)
{
if (condition)
break;
}
free(str);
}