aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c
blob: 34de37b5309e42fcec186700271e46f7a331ad27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR rtl-optimization/51495 */

void bar (void);

int
foo (int i)
{
  static const void *const table[] = { &&begin, &&end };
  goto *(table[i]);
begin:
  bar ();
end:
  return 0;
}