summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69619.c
blob: a200bdf310fc2c02b008e0c13fb9c917784423f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O3" } */

int a, b, c, d;
int e[100];
void
fn1 ()
{
  int *f = &d;
  c = 6;
  for (; c; c--)
    {
      b = 0;
      for (; b <= 5; b++)
	{
	  short g = e[(b + 2) * 9 + c];
	  *f = *f == a && e[(b + 2) * 9 + c];
	}
    }
}