(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tls/
opt-8.c
       1  /* PR 18910 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  /* { dg-require-effective-target tls } */
       5  
       6  static __thread void *foo [2];
       7  void
       8  test1 (void)
       9  {
      10    unsigned int s;
      11  
      12    for (s = 0; s < 2; ++s)
      13      foo [s] = &foo[s];
      14  }