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