Skip to content

Commit

Permalink
Revert "Uninit var: Added TODO test case"
Browse files Browse the repository at this point in the history
The test case was not valid because the variable assignment is redundant and is therefore removed by the tokenizer.

This reverts commit 548a43f.
  • Loading branch information
Daniel Marjamäki committed Feb 6, 2012
1 parent d6a887e commit 05fc77c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/testuninitvar.cpp
Expand Up @@ -1760,13 +1760,6 @@ class TestUninitVar : public TestFixture {
"}");
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"
Expand Down

0 comments on commit 05fc77c

Please sign in to comment.