1 /* Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html */ 2 /* { dg-do link { target fpic } } */ 3 /* { dg-options "-O -fpic" } */ 4 5 int *g; 6 main(void)7int main (void) 8 { 9 switch (*g) 10 { 11 case 0: 12 { 13 switch (*g) 14 { 15 case 0: *g = 1; break; 16 case 1: 17 case 2: *g = 1; break; 18 case 3: 19 case 4: *g = 1; break; 20 } 21 break; 22 } 23 case 1: 24 { 25 switch (*g) 26 { 27 case 0: *g = 1; break; 28 case 1: 29 case 2: *g = 1; break; 30 case 3: 31 case 4: *g = 1; break; 32 } 33 } 34 } 35 return 0; 36 } 37