testuninitvar: update testcase

This commit is contained in:
Daniel Marjamäki 2015-07-23 12:58:38 +02:00
parent eda3fdc96a
commit c4f9a2a160
1 changed files with 2 additions and 4 deletions

View File

@ -1009,12 +1009,10 @@ private:
"}");
ASSERT_EQUALS("", errout.str());
// TODO: write a proper testcase, this can not be compiled
checkUninitVar2("struct X { int x; };\n"
"void f() {\n"
checkUninitVar2("void f() {\n"
" X var;\n"
" memset(var, 0, sizeof(var));\n"
"}");
"}", "test.c");
ASSERT_EQUALS("", errout.str());
}