summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33670.c
blob: 5232af96548d5b2ee2e1a4b483025d5ec182a81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR middle-end/33670 */
/* { dg-do compile } */
/* { dg-options "-O2 -fsched-stalled-insns=0" } */

struct B
{
  int p;
  int n;
};
extern struct B ***b;
extern int a;

int
foo (int d, int e)
{
  int c;
  for (c = d; c <= e; c++)
    b[a][c]->n = b[a][c]->p;
}