aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/pr47715-1.c
blob: ef8c5394a909d0d07b9d2cec46933f967c6b45ea (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC" } */
/* { dg-require-effective-target tls } */

extern __thread int h_errno;
int *
__h_errno_location (void)
{
  return &h_errno;
}