Fix small mistake in unit test

This commit is contained in:
Daniel Marjamäki 2019-03-07 06:38:58 +01:00
parent 6eaf2c03d9
commit f9a12b2a71
1 changed files with 1 additions and 1 deletions

View File

@ -5305,7 +5305,7 @@ private:
" char *a; a = new char[1024];\n" " char *a; a = new char[1024];\n"
" delete[] (a + 10);\n" " delete[] (a + 10);\n"
"}"); "}");
ASSERT_EQUALS("[test.cpp:3]: (error) Mismatching address is deleted. The address you get from new must be deleted without offset..\n", errout.str()); ASSERT_EQUALS("[test.cpp:3]: (error) Mismatching address is deleted. The address you get from new must be deleted without offset.\n", errout.str());
check("void foo(char *p) {\n" check("void foo(char *p) {\n"
" char *a; a = new char;\n" " char *a; a = new char;\n"