PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / 20040311-2.c
blob9dfbb9947a3d72bb098a4c2b3e262eacab2942a1
1 /* PR target/14533 */
2 /* { dg-do compile { target fpic } } */
3 /* { dg-options "-O2 -fpic" } */
5 void bar (char *, int);
7 extern char b[];
8 extern int d, e;
9 struct S
11 struct S *m;
12 int n;
13 } **g;
15 void
16 foo (int x, char *y)
18 struct S *h;
19 int k = 1, l;
21 again:
22 for (h = *g; h != (struct S *) g; h = h->m)
24 if (k == 0 && h->n & 0x100000);
25 l = y - b;
26 if (e)
27 bar (b, l);
28 if (d)
29 bar (b, l);
31 if (k)
33 k = 0;
34 goto again;