(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
redundant-assign-zero-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fno-tree-fre -fdump-tree-dse-details" } */
       3  
       4  #include <string.h>
       5  
       6  void blahd (double *);
       7  
       8  void fubar ()
       9  {
      10    double d;
      11    double *x = &d;
      12  
      13    memset (&d, 0 , sizeof d);
      14    *x = 0.0;
      15    blahd (x);
      16  }
      17  
      18  /* { dg-final { scan-tree-dump-times "Deleted redundant store" 1 "dse1"} } */