Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp78.c
blobe08d1ffdfa2bd83eeea8a62affec00ce5c3fda59
1 /* { dg-do link } */
2 /* { dg-options "-O2" } */
4 /* Based on f3 from vrp63.c, but with switch instead of if-chain. */
6 extern void link_error (void);
8 void
9 f3 (int s)
11 if (s >> 3 == -2)
12 /* s in range [ -16, -9]. */
14 else
16 /* s in range ~[-16, -9], so none of the case labels can be taken. */
17 switch (s)
19 case -16:
20 case -12:
21 case -9:
22 link_error ();
23 break;
24 default:
25 break;
30 int
31 main ()
33 return 0;