From 988d4c0d66104a3ff8788ec9da47d9f00931678d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 30 Jan 2009 06:06:03 +0000 Subject: [PATCH] added todo testcase --- test/testcharvar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/testcharvar.cpp b/test/testcharvar.cpp index ba333dcac..d65d52d6c 100644 --- a/test/testcharvar.cpp +++ b/test/testcharvar.cpp @@ -74,6 +74,15 @@ private: "}\n"); ASSERT_EQUALS(std::string("[test.cpp:4]: Warning - using char variable as array index\n"), errout.str()); + /* TODO + check("void foo()\n" + "{\n" + " signed char ch = 0x80;\n" + " buf[ch] = 0;\n" + "}\n"); + ASSERT_EQUALS(std::string("[test.cpp:4]: Warning - using char variable as array index\n"), errout.str()); + */ + check("void foo(char ch)\n" "{\n" " buf[ch] = 0;\n"