Fixed unit test in testbufferoverrun.cpp

This commit is contained in:
PKEuS 2017-04-04 10:45:08 +02:00
parent cb274bc71d
commit b97779591e
1 changed files with 2 additions and 2 deletions

View File

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