Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / compile / pr45085.c
blob5c1ec6a5c96a764ff1b6a6bd78f9ba05444304a9
1 /* { dg-options "-O2 -Wuninitialized" } */
2 struct S { char *s1; long s2; };
3 struct T { int t1; long t2; long t3; };
4 extern int fn2 (void);
5 extern int fn3 (struct T);
6 extern struct T fn4 ();
7 extern int fn5 (char **, long *, int);
8 extern void fn6 (void);
9 extern void fn7 (void *);
10 struct S *fn10 ();
11 static int p;
12 static void *q;
13 extern struct T r;
15 static struct T
16 fn8 (struct T x, int y)
18 struct S *u = fn10 ();
19 int v = fn5 (&u->s1, &u->s2, 0);
20 while (1)
22 if (p)
23 fn6 ();
24 if (fn3 (x))
25 return fn4 ();
26 if (y & 1)
27 return r;
28 v = fn5 (&u->s1, &u->s2, 1);
32 struct T
33 fn9 (struct T x, int y)
35 struct T t = fn8 (x, y);
36 if (fn2 ())
37 fn7 (q);
38 return t;
41 void *
42 fn1 (void)
44 return fn9;