blob: 559434ac87e6ec90468b279f748a198941c879f2 [file] [log] [blame]
/* { 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);
}