1  /* Valid __thread specifiers.  */
       2  /* { dg-require-effective-target tls } */
       3  
       4  __thread int g1;
       5  extern __thread int g2;
       6  static __thread int g3;
       7  
       8  void foo()
       9  {
      10    extern __thread int l1;
      11    static __thread int l2;
      12  }