testuninitvar: use new checking instead of executionpath in 2 more testcases
This commit is contained in:
parent
229d488048
commit
28fd6ce2f0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue