2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20021116-1.c
blob27a3e3a4cec62e051b272ce7ecd2f9b876d6305a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
5 void **
6 foo (void **x, int y, void *z)
8 switch (y)
10 case 162:
11 *x = z;
12 break;
13 case 164:
14 *x = z;
15 break;
16 case 165:
17 *x = z;
18 break;
19 case 166:
20 *x = z;
21 break;
22 case 163:
23 *x = z;
24 break;
25 default:
26 goto out;
28 return x;
30 out:
31 return (void **) 0;