We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b8b26 commit 064795aCopy full SHA for 064795a
1 file changed
test/testother.cpp
@@ -6997,14 +6997,6 @@ class TestOther : public TestFixture {
6997
"}");
6998
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
6999
7000
- check("void f() {\n"
7001
- " unsigned char c;\n"
7002
- " while( EOF != ( c = getchar() ) )\n"
7003
- " {\n"
7004
- " }\n"
7005
- "}");
7006
- ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
7007
-
7008
check("void f() {\n"
7009
" int i; i = getchar();\n"
7010
" while( i != EOF)\n"
0 commit comments