Testing: memcheck3 - new and delete (no error)

This commit is contained in:
Daniel Marjamäki 2007-05-18 17:51:35 +00:00
parent 45f2292a5e
commit 0bf77b2051
2 changed files with 18 additions and 0 deletions

0
testmemcheck3/err.msg Normal file
View File

View File

@ -0,0 +1,18 @@
void f()
{
Kalle *kalle;
if (somecondition)
{
kalle = new Kalle;
}
else
{
return;
}
delete kalle;
}