Nitpicky fix of the missing ';' after the memset command inside the test case.
This commit is contained in:
parent
41d9daa03d
commit
9e5beab4a8
|
@ -2698,14 +2698,14 @@ private:
|
||||||
|
|
||||||
void memsetZeroBytes() {
|
void memsetZeroBytes() {
|
||||||
check("void f() {\n"
|
check("void f() {\n"
|
||||||
" memset(p, 10, 0)\n"
|
" memset(p, 10, 0);\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
);
|
);
|
||||||
ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"
|
ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"
|
||||||
" bytes of \'p\'\n", errout.str());
|
" bytes of \'p\'\n", errout.str());
|
||||||
|
|
||||||
check("void f() {\n"
|
check("void f() {\n"
|
||||||
" memset(p, sizeof(p), 0)\n"
|
" memset(p, sizeof(p), 0);\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
);
|
);
|
||||||
TODO_ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"
|
TODO_ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"
|
||||||
|
|
Loading…
Reference in New Issue