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:
parent
d6a887e1f9
commit
05fc77c347
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue