summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr95133.c
blob: 523decaf90e3f89024fa0cd5127ac4a586a51745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O3" } */

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);
}