(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
dce-1.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-cddce1" } */
       3  int foo (int b, int j)
       4  {
       5    if (b)
       6      {
       7        int i;
       8        for (i = 0; i<1000; ++i)
       9          ;
      10        j = 0;
      11      }
      12    return j;
      13  }
      14  /* Check that empty loop is eliminated in this case.  We should no longer have
      15     the exit condition after the loop.  */
      16  /* { dg-final { scan-tree-dump-not "999" "cddce1"} } */
      17  /* { dg-final { scan-tree-dump-not "1000" "cddce1"} } */
      18