ultimatepp/uppdev/DbgHeap/DbgHeap.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

29 lines
No EOL
363 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
MemoryIgnoreLeaksBegin();
byte *x = new byte[100];
MemoryIgnoreLeaksEnd();
new int[20];
// x[100] = 0;
// delete x;
}
/*
CONSOLE_APP_MAIN
{
byte *x = new byte[100];
x[101] = 3;
delete x;
}
CONSOLE_APP_MAIN
{
byte *x = new byte[100];
x[-1] = 3;
delete x;
}
*/