Permalink
Browse files

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 548a43f.
  • Loading branch information...
1 parent d6a887e commit 05fc77c34771f52e175f3996120c20ff6949a19e @danmar committed Feb 6, 2012
Showing with 0 additions and 7 deletions.
  1. +0 −7 test/testuninitvar.cpp
View
@@ -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"

0 comments on commit 05fc77c

Please sign in to comment.