1 /* PR rtl-optimization/51495 */
2 /* { dg-require-effective-target indirect_jumps } */
3 /* { dg-require-effective-target label_values } */
4 
5 void bar (void);
6 
7 int
foo(int i)8 foo (int i)
9 {
10   static const void *const table[] = { &&begin, &&end };
11   goto *(table[i]);
12 begin:
13   bar ();
14 end:
15   return 0;
16 }
17