summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr45352.c
blob: ef710ce6b912538fa739deac5eefd897f3c17353 (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 -march=amdfam10 -fselective-scheduling2 -fsel-sched-pipelining -funroll-all-loops" } */

struct S
{
  struct
  {
    int i;
  } **p;
  int x;
  int y;
};

extern int baz (void);
extern int bar (void *, int, int);

void
foo (struct S *s)
{
  int i;
  for (i = 0; i < s->x; i++)
    bar (s->p[i], baz (), s->y);
  for (i = 0; i < s->x; i++)
    s->p[i]->i++;
}