File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4601,11 +4601,7 @@ class TestCondition : public TestFixture {
46014601 " if (o[1] == '\\ 0') {}\n "
46024602 " }\n "
46034603 " }\n " );
4604- if (std::numeric_limits<char >::is_signed) {
4605- ASSERT_EQUALS (" [test.cpp:6:18]: (style) Condition 'o[1]=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
4606- } else {
4607- ASSERT_EQUALS (" [test.cpp:4:25] -> [test.cpp:6:18]: (style) Condition 'o[1]=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
4608- }
4604+ ASSERT_EQUALS (" [test.cpp:6:18]: (style) Condition 'o[1]=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
46094605
46104606 check (" void f(int x) {\n " // #11449
46114607 " int i = x;\n "
@@ -5341,11 +5337,7 @@ class TestCondition : public TestFixture {
53415337 " buffer.back() == '\\ n' ||\n "
53425338 " buffer.back() == '\\ 0') {}\n "
53435339 " }\n " );
5344- if (std::numeric_limits<char >::is_signed) {
5345- ASSERT_EQUALS (" [test.cpp:5:22]: (style) Condition 'buffer.back()=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
5346- } else {
5347- ASSERT_EQUALS (" [test.cpp:3:22] -> [test.cpp:5:22]: (style) Condition 'buffer.back()=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
5348- }
5340+ ASSERT_EQUALS (" [test.cpp:5:22]: (style) Condition 'buffer.back()=='\\ 0'' is always false [knownConditionTrueFalse]\n " , errout_str ());
53495341
53505342 // #9353
53515343 check (" struct X { std::string s; };\n "
You can’t perform that action at this time.
0 commit comments