(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr51491-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-ccp1" } */
       3  /* { dg-require-effective-target alloca } */
       4  
       5  int g (int *);
       6  
       7  int
       8  f (int n)
       9  {
      10    int tt = 0;
      11    int t = 4;
      12    {
      13      int a[t
      14            + (tt != 0 ? 6 : 0)
      15           ];
      16      tt = g (a);
      17      {
      18        int b[n];
      19        tt += g (b);
      20        if (n > 20)
      21  	tt += 148 * g (b);
      22        tt += b[0];
      23      }
      24      tt += a[0];
      25    }
      26    {
      27      int a[4];
      28      tt += g (a);
      29      tt += a[0];
      30    }
      31    return tt;
      32  }
      33  
      34  /* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */