BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / test / alloc / Test-new.C
blob7609172b006fb317182511d35c0b3e564c98df07
1 #include <stream.h>
3 main()
5     int* intPtrs[500000];
7     cerr << "allocating ints\n";
9     for (int i=0; i<500000; i++)
10     {
11         intPtrs[i] = new int[1];
12     }
14     cerr << "allocated ints\n";
16     cerr << "deallocating ints\n";
18     for (i=0; i<500000; i++)
19     {
20         delete[] intPtrs[i];
21     }
23     cerr << "deallocated ints\n";
25     cerr << "alloacting doubles\n";
27     double* doubles = new double[500000];
29     for (;;);