aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr81799.c
blob: 543ae94fbf61cb26b17f93021830731060569e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* { dg-do compile } */
/* { dg-options "-O3" } */

int printf (const char *, ...);

int a, c[1], d, e, **f;

void fn1 (int h)
{
  int *i = 0;
  for (d = 0; d < 1; d++)
    {
      if (d)
        continue;
      for (; e; e++)
        {
          a = c[*i];
          if (h)
            printf ("0");
        }
      return;
    }
  f = &i;
}