| 1 |
/* PR 21412 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-require-effective-target fpic } */ |
| 4 |
/* { dg-options "-O2 -fPIC" } */ |
| 5 |
/* { dg-require-effective-target tls } */ |
| 6 |
|
| 7 |
struct S { int x[10]; }; |
| 8 |
extern __thread struct S s; |
| 9 |
int *foo() { return &s.x[2]; } |