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