1 /* PR rtl-optimization/70460 */
2 
3 int c;
4 
5 __attribute__((noinline, noclone)) void
foo(int x)6 foo (int x)
7 {
8   static int b[] = { &&lab1 - &&lab0, &&lab2 - &&lab0 };
9   void *a = &&lab0 + b[x];
10   goto *a;
11 lab1:
12   c += 2;
13 lab2:
14   c++;
15 lab0:
16   ;
17 }
18 
19 int
main()20 main ()
21 {
22   foo (0);
23   if (c != 3)
24     __builtin_abort ();
25   foo (1);
26   if (c != 4)
27     __builtin_abort ();
28   return 0;
29 }
30