1 /* { dg-require-effective-target tls } */
2 /* { dg-do compile } */
4 static __thread
int fstat
;
5 static __thread
int fstat
= 1 ;
6 static __thread
int fstat
;
7 static __thread
int fstat
= 2; /* { dg-error "redefinition of 'fstat'" } */
8 /* { dg-message "note: previous definition of 'fstat' was here" "" { target *-*-* } 5 } */