| 1 | #include <stdexcept> |
| 2 | |
| 3 | int main() |
| 4 | { |
| 5 | try { |
| 6 | int x = 2; |
| 7 | throw std::logic_error("Error"); |
| 8 | } |
| 9 | catch (std::runtime_error& e){ |
| 10 | return -1; |
| 11 | } |
| 12 | catch (std::logic_error& e){ |
| 13 | return -1; |
| 14 | } |
| 15 | catch(...) { |
| 16 | return -3; |
| 17 | } |
| 18 | |
| 19 | |
| 20 | return 0; |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected