1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-skip-if "" { arc*-*-elf* } } */
4 /* { dg-options "-O2" } */
5
6 typedef int type_a;
7 __thread int b;
8 int c;
9
10 extern int bar (char *, int, int *, int, int *, char, type_a, int *, int *);
11 int foo (int *f, char buffer, type_a buflen, int *g)
12 {
13 bar("", c, (int *)foo, 1, (int *)f, buffer, buflen, (int *)g, &b);
14 }