Revert "Buffer overruns: Removed TODO test case. We intentionally don't check struct/class arrays fully to avoid false positives"

This reverts commit 87cc42e6f0.
This commit is contained in:
Daniel Marjamäki 2011-02-13 22:48:26 +01:00
parent 0d2d0c864a
commit aacb94c427
1 changed files with 14 additions and 0 deletions

View File

@ -1875,6 +1875,20 @@ private:
" }\n"
"}\n");
ASSERT_EQUALS("", errout.str());
check("class A {\n"
" void foo();\n"
" bool b[7];\n"
"};\n"
"\n"
"void A::foo() {\n"
" for (int i=0; i<7; i++) {\n"
" b[i] = b[i+1];\n"
" }\n"
"}\n");
TODO_ASSERT_EQUALS("error", // wanted result
"", // current result
errout.str());
}
void buffer_overrun_bailoutIfSwitch()