17 lines
300 B
C
17 lines
300 B
C
/* { dg-do compile } */
|
|
/* { dg-require-effective-target tls } */
|
|
/* { dg-options "-O2" } */
|
|
|
|
extern void foo (void);
|
|
extern void bar (void *);
|
|
|
|
struct {
|
|
int __attribute__(()) a;
|
|
int __attribute__(()) b;
|
|
} __thread c __attribute__((tls_model("initial-exec")));
|
|
|
|
void foo (void)
|
|
{
|
|
bar (&c.b);
|
|
}
|