OSDN Git Service

* gcc.dg/simulate-thread/simulate-thread.gdb: Call
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr45259.c
1 /* PR debug/45259 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -O2 -fpic -w" { target fpic } } */
4
5 struct S { void (*bar) (long); };
6 struct T { struct S *t; };
7 int w;
8 extern int baz (int);
9
10 void
11 foo (int x, int u, char *z)
12 {
13   struct T *v;
14   static void *y[256] = { &&l1, &&l2 };
15   for (;;)
16     switch (x)
17       {
18       l2:
19         x = 9;
20       case 9:
21         goto *y[*z++];
22       case 10:
23       case 27:
24       case 54:
25       case 99:
26       case 100:
27       case 120:
28       case 122:
29       case 131:
30       case 132:
31       case 134:
32       case 141:
33       case 142:
34         v->t->bar (u);
35         v->t->bar (u);
36       case 143:
37         continue;
38       l1:
39       default:
40         baz (w);
41       }
42 }