1 // commit: a6238c30d169cbac6bc4c4977622242063e32270 2011-02-22
2 // rewind should clear error
13 // make sure fread fails
17 n
= fread(buf
, 1, sizeof buf
, stdin
);
18 if (n
!= 0 || !ferror(stdin
))
19 t_error("fread(stdin) should have failed, got %d ferror %d feof %d\n",
20 n
, ferror(stdin
), feof(stdin
));
22 t_error("dup failed\n");
26 t_error("rewind failed to clear ferror\n");