Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.c-torture / execute / 20011219-1.c
blobd6455ab5090a1f0cb34f0079f40b7dc4bfb84427
1 /* This testcase failed on IA-32 at -O and above, because combine attached
2 a REG_LABEL note to jump instruction already using JUMP_LABEL. */
4 extern void abort (void);
5 extern void exit (int);
7 enum X { A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q };
9 void
10 bar (const char *x, int y, const char *z)
14 long
15 foo (enum X x, const void *y)
17 long a;
19 switch (x)
21 case K:
22 a = *(long *)y;
23 break;
24 case L:
25 a = *(long *)y;
26 break;
27 case M:
28 a = *(long *)y;
29 break;
30 case N:
31 a = *(long *)y;
32 break;
33 case O:
34 a = *(long *)y;
35 break;
36 default:
37 bar ("foo", 1, "bar");
39 return a;
42 int
43 main ()
45 long i = 24;
46 if (foo (N, &i) != 24)
47 abort ();
48 exit (0);