| 15 | }; |
| 16 | |
| 17 | void test() { |
| 18 | Foo f; |
| 19 | try { |
| 20 | Foo f; |
| 21 | std::cout << "Exception thrown\n"; |
| 22 | throw std::runtime_error("test exception"); |
| 23 | } catch (const std::exception &e) { |
| 24 | std::cout << "Exception caught: " << e.what() << '\n'; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | int main() { |
| 29 | test(); |
no test coverage detected