1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-fre1-details" } */
       3  
       4  struct s { _Complex float i; };
       5  void g(struct s *);
       6  
       7  float a1 (float dd)
       8  {
       9    struct s sv;
      10    sv.i = dd;
      11    float d = __real__ sv.i;
      12    g(&sv);
      13    return d;
      14  }
      15  
      16  /* { dg-final { scan-tree-dump "Replaced REALPART_EXPR.*with dd" "fre1" } } */