MCPcopy Create free account
hub / github.com/bombela/backward-cpp / TEST_SEGFAULT

Function TEST_SEGFAULT

test/test.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39TEST_UNCAUGHT_EXCEPTION(uncaught_exception_int) { throw 42; }
40
41TEST_SEGFAULT(segfault) {
42 char *a = 0;
43 char b = a[42];
44 std::cout << "result: " << b << std::endl;
45}
46
47TEST_ABORT(abort) { abort(); }
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected