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 548a43fc49.
This commit is contained in:
Daniel Marjamäki 2012-02-06 07:41:48 +01:00
parent d6a887e1f9
commit 05fc77c347
1 changed files with 0 additions and 7 deletions

View File

@ -1760,13 +1760,6 @@ private:
"}"); "}");
ASSERT_EQUALS("[test.cpp:3]: (error) Uninitialized variable: abc\n", errout.str()); 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" checkUninitVar2("int f() {\n"
" static int x;\n" " static int x;\n"
" return ++x;\n" " return ++x;\n"