uninitialized variables: Added TODO testcase for removing false positives

This commit is contained in:
Daniel Marjamäki 2009-10-29 22:51:08 +01:00
parent c6d7fad84f
commit c424d4c8af
1 changed files with 7 additions and 0 deletions

View File

@ -962,6 +962,13 @@ private:
" p->abcd();\n"
"}\n");
ASSERT_EQUALS("", errout.str());
checkUninitVar("class Fred\n"
"{\n"
" int i;\n"
" int a() { return i; }\n"
"};\n");
TODO_ASSERT_EQUALS("", errout.str());
}