mirror of git://sourceware.org/git/glibc.git
18 lines
254 B
C
18 lines
254 B
C
|
|
#include "tst-tls10.h"
|
||
|
|
|
||
|
|
#define CHECK(N, S) \
|
||
|
|
p = &a##N; \
|
||
|
|
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
|
||
|
|
abort ()
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
#ifdef USE_TLS__THREAD
|
||
|
|
struct A *p;
|
||
|
|
check1 ();
|
||
|
|
CHECK (1, 4);
|
||
|
|
CHECK (2, 7);
|
||
|
|
#endif
|
||
|
|
exit (0);
|
||
|
|
}
|