mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
29 lines
No EOL
363 B
C++
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;
|
|
}
|
|
*/ |