(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr46177.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fno-tree-copy-prop -ftree-loop-distribution" } */
       3  
       4  extern int A[];
       5  extern int B[];
       6  
       7  void
       8  foo (int j, int c)
       9  {
      10    int i;
      11  
      12    if (c)
      13      for (i = 0; i < j; i++)
      14        A[i] = B[i] = 0;
      15  
      16    for (i = 0; i < j; i++)
      17      A[i] = B[i];
      18  }