Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libmudflap / testsuite / libmudflap.c / pass52-frag.c
blob7ff9d577ba7497d12ac78c8989b08d4d563fb5d8
1 #include <stdio.h>
4 void writestuff (FILE *f)
6 fprintf (f, "hello world\n");
7 fputc ('y', f);
8 putc ('e', f);
11 void readstuff (FILE *f)
13 int c, d;
14 char stuff[100], *s;
15 c = fgetc (f);
16 ungetc (c, f);
17 d = fgetc (f);
18 s = fgets (stuff, sizeof(stuff), f);
21 int main ()
23 FILE *f;
24 writestuff (stdout);
25 writestuff (stderr);
26 f = fopen ("/dev/null", "w");
27 writestuff (f);
28 fclose (f);
29 f = fopen ("/dev/zero", "r");
30 readstuff (f);
31 f = freopen ("/dev/null", "w", f);
32 writestuff (f);
33 fclose (f);
35 return 0;