Added test case for false positive, fails currently

This commit is contained in:
Reijo Tomperi 2008-12-12 22:25:36 +00:00
parent 0e51bc3669
commit dd7e012509
1 changed files with 9 additions and 0 deletions

View File

@ -1045,6 +1045,15 @@ private:
"}\n" );
ASSERT_EQUALS( std::string(""), errout.str() );
check( "void foo()\n"
"{\n"
" char *a = (char *)malloc(10);\n"
" a = a + 10;\n"
" free(a - 10);\n"
"}\n" );
ASSERT_EQUALS( std::string(""), errout.str() );
}