MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test

Function test

test/core/test_exceptions_allowed_uncaught.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17void 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
28int main() {
29 test();

Callers 1

mainFunction · 0.70

Calls 2

runtime_errorFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected