mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@13332 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e803580575
commit
7b5e23ce70
2 changed files with 28 additions and 0 deletions
19
upptst/Realloc/Realloc.cpp
Normal file
19
upptst/Realloc/Realloc.cpp
Normal 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);
|
||||
}
|
||||
9
upptst/Realloc/Realloc.upp
Normal file
9
upptst/Realloc/Realloc.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
Realloc.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue