testuninitvar: use new checking instead of executionpath in 2 more testcases

This commit is contained in:
Daniel Marjamäki 2015-07-23 13:50:02 +02:00
parent 229d488048
commit 28fd6ce2f0
1 changed files with 10 additions and 10 deletions

View File

@ -2087,7 +2087,7 @@ private:
ASSERT_EQUALS("", errout.str());
// using uninitialized function pointer..
checkUninitVar("void foo()\n"
checkUninitVar2("void foo()\n"
"{\n"
" void (*f)();\n"
" f();\n"
@ -2192,7 +2192,7 @@ private:
"}").c_str());
ASSERT_EQUALS("[test.cpp:3]: (error) Uninitialized variable: x\n", errout.str());
checkUninitVar((funca +
checkUninitVar2((funca +
"void b() {\n"
" int *p;\n"
" a(*p);\n"