Test: Added "TestMemCheck1" -> mismatching allocation and deallocation

This commit is contained in:
Daniel Marjamäki 2007-05-15 18:30:51 +00:00
parent 03e1eadba6
commit cd169a6c27
2 changed files with 8 additions and 0 deletions

1
testmemcheck1/err.msg Normal file
View File

@ -0,0 +1 @@
[testmemcheck1\testmemcheck1.cpp:5]: Mismatching allocation and deallocation

View File

@ -0,0 +1,7 @@
void f()
{
int *a = new int[10];
delete a;
}