From 0bf77b205136afdff28fce76d54f5bfe008b2b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 18 May 2007 17:51:35 +0000 Subject: [PATCH] Testing: memcheck3 - new and delete (no error) --- testmemcheck3/err.msg | 0 testmemcheck3/testmemcheck3.cpp | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 testmemcheck3/err.msg create mode 100644 testmemcheck3/testmemcheck3.cpp diff --git a/testmemcheck3/err.msg b/testmemcheck3/err.msg new file mode 100644 index 000000000..e69de29bb diff --git a/testmemcheck3/testmemcheck3.cpp b/testmemcheck3/testmemcheck3.cpp new file mode 100644 index 000000000..8c74cc138 --- /dev/null +++ b/testmemcheck3/testmemcheck3.cpp @@ -0,0 +1,18 @@ + + + + +void f() +{ + Kalle *kalle; + if (somecondition) + { + kalle = new Kalle; + } + else + { + return; + } + delete kalle; +} +