add return value to test case

This commit is contained in:
Daniel Marjamäki 2013-02-11 18:39:03 +01:00
parent 442db6cdf9
commit 75cf951c56
1 changed files with 1 additions and 1 deletions

View File

@ -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"