gcc/testsuite/gcc.dg/tls/thr-init-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target tls } */ |
| 3 | |
| 4 | static __thread int fstat ; |
| 5 | static __thread int fstat = 1 ; /* { dg-line fstat_prev } */ |
| 6 | static __thread int fstat ; |
| 7 | static __thread int fstat = 2; |
| 8 | /* { dg-error "redefinition of 'fstat'" "" { target *-*-* } .-1 } */ |
| 9 | /* { dg-message "note: previous definition of 'fstat'" "note" { target *-*-* } fstat_prev } */ |