| 4 | using namespace std; |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | int *ptrs[500000]; |
| 9 | |
| 10 | // for (;;); |
| 11 | |
| 12 | cerr << "allocating ints\n"; |
| 13 | |
| 14 | for (int i=0; i<500000; i++) |
| 15 | { |
| 16 | ptrs[i] = new int[1]; |
| 17 | delete[] ptrs[i]; |
| 18 | } |
| 19 | |
| 20 | for (;;); |
| 21 | |
| 22 | cerr << "allocating double\n"; |
| 23 | |
| 24 | double* array = new double[500000]; |
| 25 | |
| 26 | for (;;); |
| 27 | } |
no outgoing calls
no test coverage detected