MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / uninitvar15

Method uninitvar15

test/testuninitvar.cpp:3680–3689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3678 }
3679
3680 void uninitvar15() { // #13685
3681 const char code[] = "int f() {\n"
3682 " int x;\n"
3683 " if (!({ int *p = &x; *p = 1; 1; }))\n"
3684 " return 0;\n"
3685 " return x;\n"
3686 "}";
3687 valueFlowUninit(code, false);
3688 ASSERT_EQUALS("", errout_str());
3689 }
3690
3691 void valueFlowUninit2_value()
3692 {

Callers

nothing calls this directly

Calls 1

valueFlowUninitFunction · 0.85

Tested by

no test coverage detected