parent
b0b8b2608a
commit
064795a705
|
@ -6997,14 +6997,6 @@ private:
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
|
||||||
|
|
||||||
check("void f() {\n"
|
|
||||||
" unsigned char c;\n"
|
|
||||||
" while( EOF != ( c = getchar() ) )\n"
|
|
||||||
" {\n"
|
|
||||||
" }\n"
|
|
||||||
"}");
|
|
||||||
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
|
|
||||||
|
|
||||||
check("void f() {\n"
|
check("void f() {\n"
|
||||||
" int i; i = getchar();\n"
|
" int i; i = getchar();\n"
|
||||||
" while( i != EOF)\n"
|
" while( i != EOF)\n"
|
||||||
|
|
Loading…
Reference in New Issue