aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr87211.c
blob: 386d2a481c3e14dd261c7b41438a8b5082aa2996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

int a, b;
int i(int *);
int *c(int *d, int *e)
{
  for (; b;)
    d = e;
  return d;
}
void f()
{
  for (;;)
    {
      int *g[1];
      int h = 0;
      for (; h < 3; h++)
	g[0] = &a;
      &a == g[0] || i(c((int *)g, g[0]));
    }
}