From c4c847b952d4152729a7be5576ec8566907f4188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 1 May 2019 19:33:39 +0200 Subject: [PATCH] Remove test case, ValueFlow will truncate and sign-extend values --- test/testcharvar.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/testcharvar.cpp b/test/testcharvar.cpp index d784099b9..a414a1c15 100644 --- a/test/testcharvar.cpp +++ b/test/testcharvar.cpp @@ -81,14 +81,6 @@ private: "}"); ASSERT_EQUALS("", errout.str()); - check("int buf[256];\n" - "void foo()\n" - "{\n" - " signed char ch = 0x80;\n" - " buf[ch] = 0;\n" - "}"); - ASSERT_EQUALS("[test.cpp:5]: (warning) Signed 'char' type used as array index.\n", errout.str()); - check("int buf[256];\n" "void foo()\n" "{\n"