diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 821534e21..b1555a93d 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -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;