Removed redundant test, which was related to the Tokenizer, not to the memory leak checker.

This commit is contained in:
Edoardo Prezioso 2011-10-16 21:19:18 +02:00
parent 4705026242
commit 6f80c5ff64
1 changed files with 0 additions and 17 deletions

View File

@ -343,8 +343,6 @@ private:
// #2662: segfault because of endless recursion (call_func -> getAllocationType -> functionReturnType -> call_func ..)
TEST_CASE(trac2662);
TEST_CASE(redundantCodeAfterReturnGoto);
}
@ -3713,21 +3711,6 @@ private:
"}\n");
ASSERT_EQUALS("", errout.str());
}
//ticket # 3083
void redundantCodeAfterReturnGoto() {
check("void foo()\n"
"{\n"
" char * data;\n"
" data = NULL;\n"
" goto source;\n"
" data = (char *)malloc((10+1)*sizeof(char));\n"
"source:\n"
" data = (char *)malloc(10*sizeof(char));\n"
" free(data);\n"
"}");
ASSERT_EQUALS("",errout.str());
}
};
static TestMemleakInFunction testMemleakInFunction;