summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/thr-init-1.c
blob: eb2f84695fbe89f427800c9bb6408e213fe8c8ee (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-require-effective-target tls } */

static __thread int fstat ;
static __thread int fstat = 1 ;
static __thread int fstat ;
static __thread int fstat = 2; /* { dg-error "redefinition of 'fstat'" } */
				/* { dg-message "note: previous definition of 'fstat' was here" "" { target *-*-* } 5 } */