1  /* { dg-do compile } */
       2  /* { dg-options "-O -fstrict-aliasing -fdump-tree-fre1-details" } */
       3  
       4  struct X { int i; int j; };
       5  
       6  struct X x, y;
       7  void foo ()
       8  {
       9    x.i = 1;
      10    y = x;
      11    y.i = 1; // redundant
      12  }
      13  
      14  /* { dg-final { scan-tree-dump "Deleted redundant store y.i" "fre1" } } */