added todo testcase

This commit is contained in:
Daniel Marjamäki 2009-01-30 06:06:03 +00:00
parent 7a3c7cd242
commit 988d4c0d66
1 changed files with 9 additions and 0 deletions

View File

@ -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"