summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/opt-13.c
blob: 8eea76b68ab5f72cac09a8f7efedf37962e736ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target tls } */

__thread struct
{
  int a;
  char b[32];
} thr;

int
main ()
{
  __builtin_strcpy (thr.b, "abcd");
  return 0;
}