OSDN Git Service

* gcc.dg/builtins-config.h: Disable C99 runtime testing for
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20021116-1.c
1 /* { dg-do compile { target fpic } } */
2 /* { dg-options "-O2 -fpic" } */
3
4 void **
5 foo (void **x, int y, void *z)
6 {
7   switch (y)
8     {
9     case 162:
10       *x = z;
11       break;
12     case 164:
13       *x = z;
14       break;
15     case 165:
16       *x = z;
17       break;
18     case 166:
19       *x = z;
20       break;
21     case 163:
22       *x = z;
23       break;
24     default:
25       goto out;
26     }
27   return x;
28
29 out:
30   return (void **) 0;
31 }