Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
volatile int zero = 0;
63
64
int divide_by_zero() {
65
std::cout <<
"And the wild black hole appears..."
<< std::endl;
66
int v = 42 / zero;
67
return v;
68
}
69
70
TEST_DIVZERO(divide_by_zero) {
71
int v = divide_by_zero();
Callers
1
TEST_DIVZERO
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected