Skip to content
Browse files

Uninit var: Added TODO test case

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

Please sign in to comment.
Something went wrong with that request. Please try again.