(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tls/
pr45870.c
       1  /* PR target/45870 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-g -O" } */
       4  /* { dg-require-effective-target tls } */
       5  
       6  __thread int v[30];
       7  int bar (void);
       8  
       9  int
      10  foo (int x, int y, int z)
      11  {
      12    int a, b = z, c;
      13    while (b > 0)
      14      {
      15        c = (bar () % 3);
      16        a = v[x];
      17        if (x < y)
      18  	for (;;);
      19        b += a;
      20      }
      21  }