Fixed unit test in testbufferoverrun.cpp
This commit is contained in:
parent
cb274bc71d
commit
b97779591e
|
@ -2947,9 +2947,9 @@ private:
|
|||
"{\n"
|
||||
" enum E { };\n"
|
||||
" E *e; e = new E[10];\n"
|
||||
" s[10] = 0;\n"
|
||||
" e[10] = 0;\n"
|
||||
"}");
|
||||
TODO_ASSERT_EQUALS("[test.cpp:5]: (error) Array 's[10]' accessed at index 10, which is out of bounds.\n", "", errout.str());
|
||||
ASSERT_EQUALS("[test.cpp:5]: (error) Array 'e[10]' accessed at index 10, which is out of bounds.\n", errout.str());
|
||||
}
|
||||
|
||||
// data is allocated with malloc
|
||||
|
|
Loading…
Reference in New Issue