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