From c424d4c8af612fcefbb4b491892b609ff91a3b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 29 Oct 2009 22:51:08 +0100 Subject: [PATCH] uninitialized variables: Added TODO testcase for removing false positives --- test/testother.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/testother.cpp b/test/testother.cpp index 5f100e160..e140d8acc 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -962,6 +962,13 @@ private: " p->abcd();\n" "}\n"); ASSERT_EQUALS("", errout.str()); + + checkUninitVar("class Fred\n" + "{\n" + " int i;\n" + " int a() { return i; }\n" + "};\n"); + TODO_ASSERT_EQUALS("", errout.str()); }