Uninitialized variable: added TODO test case. Ticket: #3369

This commit is contained in:
Daniel Marjamäki 2011-12-15 20:55:37 +01:00
parent d2d7e25f3f
commit 3153650be3
1 changed files with 7 additions and 0 deletions

View File

@ -1800,6 +1800,13 @@ private:
"}\n");
ASSERT_EQUALS("", errout.str());
checkUninitVar2("void f() {\n"
" int x;\n"
" for (int i = 0; i < 10; i += x) {\n"
" }\n"
"}\n");
TODO_ASSERT_EQUALS("error", "", errout.str());
// try
checkUninitVar2("void f() {\n"
" int i, *p = &i;\n"