Nitpicky fix of the missing ';' after the memset command inside the test case.

This commit is contained in:
Edoardo Prezioso 2011-10-20 21:46:34 +02:00
parent 41d9daa03d
commit 9e5beab4a8
1 changed files with 2 additions and 2 deletions

View File

@ -2698,14 +2698,14 @@ private:
void memsetZeroBytes() {
check("void f() {\n"
" memset(p, 10, 0)\n"
" memset(p, 10, 0);\n"
"}\n"
);
ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"
" bytes of \'p\'\n", errout.str());
check("void f() {\n"
" memset(p, sizeof(p), 0)\n"
" memset(p, sizeof(p), 0);\n"
"}\n"
);
TODO_ASSERT_EQUALS("[test.cpp:2]: (warning) memset() called to fill 0"