tst-tls12.c 259 B

123456789101112131415161718
  1. #include "tst-tls10.h"
  2. #define CHECK(N, S) \
  3. p = &a##N; \
  4. if (p->a != S || p->b != S + 1 || p->c != S + 2) \
  5. abort ()
  6. int
  7. main (void)
  8. {
  9. #ifdef USE_TLS__THREAD
  10. struct A *p;
  11. check1 ();
  12. CHECK (1, 4);
  13. CHECK (2, 7);
  14. #endif
  15. exit (0);
  16. }