aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr95133.c
blob: 5e233595edbcfbdba2a784c1cbf6e65db3e17fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-require-effective-target label_values } */

extern int a[16];
void f (int *ip, int x)
{
  int *xp = a;
  for (int i=0; i<8; ++i)
  {
    base: if (x) return;
  }
  *xp++ = *ip;
  goto *(&&base + *ip);
}