add return value to test case
This commit is contained in:
parent
442db6cdf9
commit
75cf951c56
|
@ -2269,7 +2269,7 @@ private:
|
||||||
checkUninitVar2("int* f(int a) {\n" // #4560
|
checkUninitVar2("int* f(int a) {\n" // #4560
|
||||||
" int x = 0, y;\n"
|
" int x = 0, y;\n"
|
||||||
" if (a) x = 1;\n"
|
" if (a) x = 1;\n"
|
||||||
" else return;\n"
|
" else return 0;\n"
|
||||||
" if (x) y = 123;\n" // <- y is always initialized
|
" if (x) y = 123;\n" // <- y is always initialized
|
||||||
" else y = 456;\n"
|
" else y = 456;\n"
|
||||||
" return y;\n"
|
" return y;\n"
|
||||||
|
|
Loading…
Reference in New Issue