We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d888ba commit 9564442Copy full SHA for 9564442
1 file changed
test/testio.cpp
@@ -251,6 +251,12 @@ class TestIO : public TestFixture {
251
"}", false, false, Settings::Win32W);
252
ASSERT_EQUALS("", errout.str());
253
254
+ check("void foo(FILE*& f) {\n"
255
+ " f = tmpfile();\n"
256
+ " fwrite(buffer, 5, 6, f);\n"
257
+ "}", false, false, Settings::Win32W);
258
+ ASSERT_EQUALS("", errout.str());
259
+
260
// Write mode
261
check("void foo(FILE*& f) {\n"
262
" f = fopen(name, \"w\");\n"
@@ -266,6 +272,12 @@ class TestIO : public TestFixture {
266
272
"}");
267
273
268
274
275
276
277
+ " fread(buffer, 5, 6, f);\n"
278
+ "}");
279
280
269
281
// Append mode
270
282
271
283
" f = fopen(name, \"a\");\n"
0 commit comments