initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / test / alloc / allocTest.C
blobdb4318475b5202fdff9326f4ab55f678a6293f2d
1 #include <iostream>
2 #include <unistd.h>
4 using namespace std;
6 int main()
8     int *ptrs[500000];
10 //    for (;;);
12     cerr << "allocating ints\n";
14     for (int i=0; i<500000; i++)
15     {
16         ptrs[i] = new int[1];
17         delete[] ptrs[i];
18     }
20     for (;;);
22     cerr << "allocating double\n";
24     double* array = new double[500000];
26     for (;;);