1 /* PR rtl-optimization/52139 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O -fno-tree-dominator-opts -fno-tree-fre" } */ 4 /* { dg-additional-options "-fpic" { target fpic } } */ 5 6 void *p; 7 8 void foo(int a)9foo (int a) 10 { 11 switch (a) 12 { 13 case 0: 14 a0: 15 case 1: 16 a1: 17 p = &&a1; 18 case 2: 19 a2: 20 p = &&a2; 21 case 3: 22 a3: 23 p = &&a3; 24 case 4: 25 a4: 26 p = &&a4; 27 case 5: 28 a5: 29 p = &&a5; 30 case 6: 31 a6: 32 p = &&a6; 33 case 7: 34 a7: 35 p = &&a7; 36 case 8: 37 a8: 38 p = &&a8; 39 case 9: 40 a9: 41 p = &&a9; 42 case 10: 43 a10: 44 p = &&a10; 45 default: 46 p = &&a0; 47 } 48 goto *p; 49 } 50