Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr70460.c
blobacc57511ae2be3793c3b53e3fe70c772e81f9fef
1 /* { dg-require-effective-target indirect_jumps } */
2 /* { dg-require-effective-target label_values } */
4 /* PR rtl-optimization/70460 */
6 int c;
8 __attribute__((noinline, noclone)) void
9 foo (int x)
11 static int b[] = { &&lab1 - &&lab0, &&lab2 - &&lab0 };
12 void *a = &&lab0 + b[x];
13 goto *a;
14 lab1:
15 c += 2;
16 lab2:
17 c++;
18 lab0:
22 int
23 main ()
25 foo (0);
26 if (c != 3)
27 __builtin_abort ();
28 foo (1);
29 if (c != 4)
30 __builtin_abort ();
31 return 0;