gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / pr47715-1.c
blobef8c5394a909d0d07b9d2cec46933f967c6b45ea
1 /* { dg-do compile } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-O2 -fPIC" } */
4 /* { dg-require-effective-target tls } */
6 extern __thread int h_errno;
7 int *
8 __h_errno_location (void)
10 return &h_errno;