Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / lto / 20100423-2_0.c
blobf546757c2168e886bcc32f876c05c1e665d9f9e8
1 /* { dg-lto-do link } */
2 /* { dg-lto-options {{-O2 -flto -flto-partition=none} {-O2 -flto -flto-partition=1to1} {-O3 -flto -flto-partition=none} {-O3 -flto -flto-partition=1to1}} } */
4 #include <stdio.h>
6 typedef unsigned char uch;
7 extern uch inbuf[];
8 unsigned insize;
9 char *progname;
10 extern void read_error (void);
11 int fill_inbuf(int eof_ok)
13 if (insize == 0)
15 if (eof_ok)
16 return -1;
17 read_error();
19 return inbuf[0];
21 void read_error(void)
23 fprintf(stderr, "\n%s: ", progname);