summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr80167.c
blob: 990450b2ae69d6c10fe7aa153f95dc33562615d6 (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
/* { dg-do compile } */
/* { dg-options "-O2 -floop-nest-optimize" } */

typedef struct
{
  short a;
  short b;
  short c;
} d;
extern d e[];
int f[8];
void
g (d *i)
{
  int h = 0;
  for (; h < 28; h++)
    e[h].a = e[h].b = i[h].a;
  h = 0;
  for (; h < 8; h++)
    f[h] = i[h].b + i[h].c;
  h = 0;
  for (; h < 8; h++)
    f[h] = i[h].b;
}