Revert "Uninit var: Added TODO test case"

The test case was not valid because the variable assignment is redundant and is therefore removed by the tokenizer.

This reverts commit 548a43fc49496af9a07a0053a8117c472c641b0a.
This commit is contained in:
Daniel Marjamäki 2012-02-06 07:41:48 +01:00
parent d6a887e1f9
commit 05fc77c347

View File

@ -1760,13 +1760,6 @@ private:
"}");
ASSERT_EQUALS("[test.cpp:3]: (error) Uninitialized variable: abc\n", errout.str());
checkUninitVar2("void f() {\n"
" int x;\n"
" int y = x;\n"
"}\n");
TODO_ASSERT_EQUALS("error", "", errout.str());
checkUninitVar2("int f() {\n"
" static int x;\n"
" return ++x;\n"