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