| 7 | double* computeValues(size_t howMany); // A function to compute an array of values |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | try |
| 12 | { |
| 13 | double* values{ computeValues(10'000) }; |
| 14 | // Unfortunately we won't be making it this far... |
| 15 | delete[] values; |
| 16 | } |
| 17 | catch (const Trouble&) |
| 18 | { |
| 19 | std::cout << "No worries: I've caught it!" << std::endl; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | double* computeValues(size_t howMany) |
| 24 | { |
nothing calls this directly
no test coverage detected