MCPcopy Create free account
hub / github.com/KDAB/codebrowser / oh

Function oh

tests/test.cc:262–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260int nonstatic_val;
261
262int *oh() {
263 extern int extern_val;
264 goto label;
265 nonstatic_val += extern_val;
266 static_val += some_static_func();
267label:
268 int q = [&]() {
269 extern_val++;
270 static_val++;
271 nonstatic_val++;
272label:
273 static std::string local_static;
274 local_static = "hello";
275 int loc = 4;
276 struct MyStruct : MyBase {
277 void operator+=(int q) {
278label:
279 static_member += q;
280 goto label;
281 }
282 /* that's magic */
283 int foo() { return 4; }
284 };
285
286 goto label;
287 MyStruct s;
288 goto label;
289 s+=loc;
290 return loc + s.foo();
291 }();
292 if (q) {
293 goto label;
294 return &extern_val;
295 }
296 return &nonstatic_val;
297}
298
299class ForwardDeclare;
300int func() {

Callers 1

mMethod · 0.85

Calls 2

some_static_funcFunction · 0.85
fooMethod · 0.45

Tested by

no test coverage detected