1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -floop-nest-optimize" } */
       3  
       4  typedef struct
       5  {
       6    short a;
       7    short b;
       8    short c;
       9  } d;
      10  extern d e[];
      11  int f[8];
      12  void
      13  g (d *i)
      14  {
      15    int h = 0;
      16    for (; h < 28; h++)
      17      e[h].a = e[h].b = i[h].a;
      18    h = 0;
      19    for (; h < 8; h++)
      20      f[h] = i[h].b + i[h].c;
      21    h = 0;
      22    for (; h < 8; h++)
      23      f[h] = i[h].b;
      24  }