2 /* { dg-require-effective-target tls_runtime } */
3 /* { dg-add-options tls } */
5 #define ARRAY(X) X##_array
8 __thread int ARRAY(X)[4]; \
9 int *volatile *__attribute__((noinline)) \
10 check##X (int *volatile *y) \
12 if (!y || *y++ != &X || *y++ != &ARRAY(X)[3]) \
16 #define COPY(X) *y++ = &X; *y++ = &ARRAY(X)[3];
17 #define CHECK(X) y = check##X (y);
18 #define A(M, X) M(X##0) M(X##1) M(X##2) M(X##3) M(X##4) M(X##5) M(X##6) M(X##7)
19 #define B(M, X) A(M, X##0) A(M, X##1) A(M, X##2)
20 #define C(M, X) B(M, X) B(M, X) B(M, X)
27 extern void abort (void);
31 void __attribute__ ((noinline
))
32 setup (int *volatile *y
)
40 int *volatile array
[NC
];
41 int *volatile *y
= array
;