db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
30 lines
441 B
C
30 lines
441 B
C
#include <stream.h>
|
|
|
|
main()
|
|
{
|
|
int* intPtrs[500000];
|
|
|
|
cerr << "allocating ints\n";
|
|
|
|
for (int i=0; i<500000; i++)
|
|
{
|
|
intPtrs[i] = new int[1];
|
|
}
|
|
|
|
cerr << "allocated ints\n";
|
|
|
|
cerr << "deallocating ints\n";
|
|
|
|
for (i=0; i<500000; i++)
|
|
{
|
|
delete[] intPtrs[i];
|
|
}
|
|
|
|
cerr << "deallocated ints\n";
|
|
|
|
cerr << "alloacting doubles\n";
|
|
|
|
double* doubles = new double[500000];
|
|
|
|
for (;;);
|
|
}
|