(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
pr102906.c
       1  // { dg-do compile }
       2  // { dg-options "-Os -fdump-tree-ch-details" }
       3  
       4  extern unsigned int foo (int*) __attribute__((pure));
       5  
       6  unsigned int
       7  tr2 (int array[], int n)
       8  {
       9    unsigned int sum = 0;
      10    int x;
      11    if (n > 0)
      12      for (x = 0; x < n; x++)
      13        sum += foo (&array[x]);
      14    return sum;
      15  }
      16  
      17  // { dg-final { scan-tree-dump-not "Not duplicating.*optimizing for size" "ch2" } }