(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr63342.c
       1  /* PR debug/63342 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-g -O2" } */
       4  /* { dg-additional-options "-fpic" { target fpic } } */
       5  
       6  static __thread double u[9], v[9];
       7  
       8  void
       9  foo (double **p, double **q)
      10  {
      11    *p = u;
      12    *q = v;
      13  }
      14  
      15  double
      16  bar (double x)
      17  {
      18    int i;
      19    double s = 0.0;
      20    for (i = 0; i < 9; i++)
      21      {
      22        double a = x + v[i];
      23        s += u[i] * a * a;
      24      }
      25    return s;
      26  }