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

short a;
int b, c, d[1][4][2];

void
foo (void)
{
  int *e;
  for (b = 1; ; b--)
    {
      if (*e)
	break;
      for (c = 2; c >= 0; c--)
	{
	  *e |= d[0][3][b] != a;
	  int *f = &d[0][3][b];
	  *f = 0;
	}
    }
}