Test-new.C
Go to the documentation of this file.
1 #include <stream.h>
2 
3 main()
4 {
5  int* intPtrs[500000];
6 
7  cerr << "allocating ints\n";
8 
9  for (int i=0; i<500000; i++)
10  {
11  intPtrs[i] = new int[1];
12  }
13 
14  cerr << "allocated ints\n";
15 
16  cerr << "deallocating ints\n";
17 
18  for (i=0; i<500000; i++)
19  {
20  delete[] intPtrs[i];
21  }
22 
23  cerr << "deallocated ints\n";
24 
25  cerr << "alloacting doubles\n";
26 
27  double* doubles = new double[500000];
28 
29  for (;;);
30 }
main
main()
Definition: Test-new.C:3