git-svn-id: svn://ultimatepp.org/upp/trunk@13332 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-05-22 09:26:46 +00:00
parent e803580575
commit 7b5e23ce70
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
void *ptr = MemoryAlloc(400);
DDUMP(TryRealloc(ptr, 420));
DDUMP(TryRealloc(ptr, 1000));
MemoryFree(ptr);
ptr = MemoryAlloc(2000);
DDUMP(TryRealloc(ptr, 4000));
DDUMP(TryRealloc(ptr, 200));
DDUMP(TryRealloc(ptr, 200000));
MemoryFree(ptr);
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
Realloc.cpp;
mainconfig
"" = "";