MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/ExceptionTest.cpp:3–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdexcept>
2
3int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected