2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 950221-1.c
blobd67da5b0c8c172cfe34f38ba660d6c609fd7328a
1 struct parsefile
3 long fd;
4 char *buf;
5 };
6 struct parsefile basepf;
7 struct parsefile *parsefile = &basepf;
8 #ifdef STACK_SIZE
9 int filler[STACK_SIZE / (2*sizeof(int))];
10 #else
11 int filler[0x3000];
12 #endif
13 int el;
15 char *
16 g1 (a, b)
17 int a;
18 int *b;
22 g2 (a)
23 long a;
25 if (a != 0xdeadbeefL)
26 abort ();
27 exit (0);
30 f ()
32 register char *p, *q;
33 register int i;
34 register int something;
36 if (parsefile->fd == 0L && el)
38 const char *rl_cp;
39 int len;
40 rl_cp = g1 (el, &len);
41 strcpy (p, rl_cp);
43 else
45 alabel:
46 i = g2 (parsefile->fd);
50 main ()
52 el = 0;
53 parsefile->fd = 0xdeadbeefL;
54 f ();