2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr46216.c
blobb257dbf2cd540c0921edaefc49e5f56b2d0ec964
1 /* { dg-do compile } */
3 typedef int Embryo_Cell;
4 int
5 embryo_program_run(Embryo_Cell *cip)
7 unsigned char op;
8 Embryo_Cell offs;
9 static const void *switchtable[256] = {
10 &&SWITCHTABLE_EMBRYO_OP_NONE, &&SWITCHTABLE_EMBRYO_OP_LOAD_PRI
12 for (;;)
14 op = *cip++;
15 while (1) {
16 goto *switchtable[op];
17 SWITCHTABLE_EMBRYO_OP_LOAD_PRI:
18 offs = *(Embryo_Cell *)cip++;
19 SWITCHTABLE_EMBRYO_OP_NONE:
20 break;
23 return offs;