1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-require-effective-target tls_runtime } */ /* { dg-add-options tls } */ __thread double thrtest[81]; int main () { double *p, *e; e = &thrtest[81]; for (p = &thrtest[0]; p < e; ++p) *p = 1.0; return 0; }