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

int a[1], b, *c, *d;

int main() {
L:
  d = c;
  for (b = 0; b < 2; b++)
    d = &a[0];
  if (c)
    goto L;
  if (*d)
    __builtin_abort ();
  return 0;
}