Fix small mistake in unit test
This commit is contained in:
parent
6eaf2c03d9
commit
f9a12b2a71
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue