Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/lto/20100423-2_0.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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}} } */ | |
3 | |
4 #include <stdio.h> | |
5 | |
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) | |
12 { | |
13 if (insize == 0) | |
14 { | |
15 if (eof_ok) | |
16 return -1; | |
17 read_error(); | |
18 } | |
19 return inbuf[0]; | |
20 } | |
21 void read_error(void) | |
22 { | |
23 fprintf(stderr, "\n%s: ", progname); | |
24 } | |
25 |