aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr57417.c
blob: 6eac6f932b81066c3c0cbdc2e1eed5f9d7834e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

int a, b;
volatile int *c;

void foo ()
{
  volatile int d[1];
  b = 0;
  for (;; a--)
    c = &d[b];
}