summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/pr24428.c
blob: 6439698775a848a518e569dc088986739e5c6aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target tls_runtime } */
/* { dg-add-options tls } */

__thread double thrtest[81];
int main ()
{
  int i;
  for (i = 0; i < 81; i++)
    thrtest[i] = 1.0;
  return 0;
}