Uninitialized variables; fix syntax errors in test cases
This commit is contained in:
parent
1e6a574cff
commit
2d3d7db730
|
@ -1376,7 +1376,7 @@ private:
|
|||
" if (true) {;}\n"
|
||||
" else\n"
|
||||
" {\n"
|
||||
" return 1;\n"
|
||||
" return;\n"
|
||||
" }\n"
|
||||
" *p = 7;\n" // <<
|
||||
" p = new int(9);\n"
|
||||
|
@ -1490,7 +1490,7 @@ private:
|
|||
|
||||
// arrays..
|
||||
void uninitvar_arrays() {
|
||||
checkUninitVar("int f()\n"
|
||||
checkUninitVar("void f()\n"
|
||||
"{\n"
|
||||
" char a[10];\n"
|
||||
" a[a[0]] = 0;\n"
|
||||
|
|
Loading…
Reference in New Issue