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

Function divide_by_zero

test/suicide.cpp:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62volatile int zero = 0;
63
64int divide_by_zero() {
65 std::cout << "And the wild black hole appears..." << std::endl;
66 int v = 42 / zero;
67 return v;
68}
69
70TEST_DIVZERO(divide_by_zero) {
71 int v = divide_by_zero();

Callers 1

TEST_DIVZEROFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected