2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 920501-4.c
blob3524dd5c8b2552a9348eee684bc66cfbb6afa983
1 #ifndef NO_LABEL_VALUES
2 int
3 x (int i)
5 static const void *j[] = {&& x, && y, && z};
7 goto *j[i];
9 x: return 2;
10 y: return 3;
11 z: return 5;
14 int
15 main (void)
17 if ( x (0) != 2
18 || x (1) != 3
19 || x (2) != 5)
20 abort ();
22 exit (0);
24 #else
25 int
26 main (void) { exit (0); }
27 #endif