Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52139.c
blobbd654a2f1515f8d6e671a3e0bd5cc2d6a66303fe
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 } } */
6 void *p;
8 void
9 foo (int a)
11 switch (a)
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;
48 goto *p;