1 /* Report invalid extern and __thread combinations. */ 2 3 extern int j; /* { dg-error "previous declaration" } */ 4 __thread int j; /* { dg-error "follows non thread-local" } */ 5 6 extern __thread int i; /* { dg-error "previous declaration" } */ 7 int i; /* { dg-error "follows thread-local" } */ 8 9 extern __thread int k; /* This is fine. */ 10 __thread int k; 11