uninitialized variables: Added TODO testcase for removing false positives
This commit is contained in:
parent
c6d7fad84f
commit
c424d4c8af
|
@ -962,6 +962,13 @@ private:
|
||||||
" p->abcd();\n"
|
" p->abcd();\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
checkUninitVar("class Fred\n"
|
||||||
|
"{\n"
|
||||||
|
" int i;\n"
|
||||||
|
" int a() { return i; }\n"
|
||||||
|
"};\n");
|
||||||
|
TODO_ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue