(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arc/
pr9001184797.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target tls } */
       3  /* { dg-options "-Os -w -mno-ll64" } */
       4  
       5  /* This test studies the use of anchors and tls symbols. */
       6  
       7  struct a b;
       8  struct a {
       9    long c;
      10    long d
      11  } e() {
      12    static __thread struct a f;
      13    static __thread g;
      14    g = 5;
      15    h();
      16    if (f.c)
      17      g = g & 5;
      18    f = b;
      19  }