We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fdfada commit 2b7ef71Copy full SHA for 2b7ef71
1 file changed
test/testio.cpp
@@ -386,12 +386,14 @@ class TestIO : public TestFixture {
386
" fread(buffer, 5, 6, f);\n"
387
" ungetc('a', f);\n"
388
" ungetwc(L'a', f);\n"
389
+ " rewind(f);\n"
390
"}");
391
ASSERT_EQUALS("[test.cpp:3]: (error) Used file that is not opened.\n"
392
"[test.cpp:4]: (error) Used file that is not opened.\n"
393
"[test.cpp:5]: (error) Used file that is not opened.\n"
394
"[test.cpp:6]: (error) Used file that is not opened.\n"
- "[test.cpp:7]: (error) Used file that is not opened.\n", errout.str());
395
+ "[test.cpp:7]: (error) Used file that is not opened.\n"
396
+ "[test.cpp:8]: (error) Used file that is not opened.\n", errout.str());
397
398
check("void foo(FILE*& f) {\n"
399
" if(!ferror(f)) {\n"
0 commit comments