From 6f80c5ff6491e48b04ad8cae9f4ec9269b1c4e89 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 16 Oct 2011 21:19:18 +0200 Subject: [PATCH] Removed redundant test, which was related to the Tokenizer, not to the memory leak checker. --- test/testmemleak.cpp | 17 ----------------- 1 file changed, 17 deletions(-) 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;