testuninitvar: update testcase
This commit is contained in:
parent
eda3fdc96a
commit
c4f9a2a160
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue