added todo test case for ticket 200

This commit is contained in:
Daniel Marjamäki 2009-03-22 21:42:01 +01:00
parent 8efae83184
commit c9d02273b8
1 changed files with 14 additions and 0 deletions

View File

@ -164,6 +164,7 @@ private:
TEST_CASE(realloc1);
TEST_CASE(realloc2);
// TODO TEST_CASE(realloc3);
TEST_CASE(assign);
@ -1648,6 +1649,19 @@ private:
ASSERT_EQUALS(std::string(""), errout.str());
}
void realloc3()
{
check("void foo()\n"
"{\n"
" char *a = 0;\n"
" if ((a = realloc(a, 100)) == NULL)\n"
" return;\n"
" free(a);\n"
"}\n");
ASSERT_EQUALS(std::string(""), errout.str());
}
void assign()
{