Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63284.c
blobdc7fc28b87e7a993eb4fdf53190eb898835162ff
1 /* PR debug/63284 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug" } */
5 int a[10], *b, *d, c, f;
6 int fn2 (void);
7 void fn3 (void);
8 void fn4 (int);
10 static int
11 fn1 (int x)
13 int e = a[0];
14 if (e)
15 return 1;
16 if (b)
17 switch (x)
19 case 1:
20 if (d)
21 e = fn2 ();
22 else
23 fn3 ();
24 break;
25 case 0:
26 if (d)
28 fn3 ();
29 if (c)
30 fn4 (1);
32 else
33 fn4 (0);
35 return e;
38 void
39 fn6 (void)
41 f = fn1 (0);