(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tls/
opt-15.c
       1  /* PR target/42564 */
       2  /* This used to ICE on the SPARC because of an unrecognized TLS pattern.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-options "-O -fPIC" } */
       6  /* { dg-require-effective-target tls } */
       7  /* { dg-require-effective-target fpic } */
       8  
       9  extern void *memset(void *s, int c, __SIZE_TYPE__ n);
      10  
      11  struct S1 { int i; };
      12  
      13  struct S2
      14  {
      15    int ver;
      16    struct S1 s;
      17  };
      18  
      19  static __thread struct S2 m;
      20  
      21  void init(void)
      22  {
      23    memset(&m.s, 0, sizeof(m.s));
      24  }