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:
parent
0d2d0c864a
commit
aacb94c427
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue