1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-skip-if "" { arc*-*-elf* } } */
4 /* { dg-options "-Os -fPIC" } */
5
6
7 typedef struct
8 {
9 int(a);
10 char b[];
11 } type_c;
12
13
14 extern int bar (char *, int, char *);
15 static _Thread_local type_c d;
16 int foo(void)
17 {
18 bar(d.b, 0, d.b);
19 }