summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/pr24428-2.c
blob: b147f60d6a911f9099db097eb193d77009e906f6 (plain)
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;
}