tst-tls10.h 807 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <stdlib.h>
  2. #if defined USE_TLS && defined HAVE___THREAD \
  3. && defined HAVE_TLS_MODEL_ATTRIBUTE
  4. # define USE_TLS__THREAD
  5. struct A
  6. {
  7. char a;
  8. int b;
  9. long long c;
  10. };
  11. extern __thread struct A a1, a2, a3, a4;
  12. extern struct A *f1a (void);
  13. extern struct A *f2a (void);
  14. extern struct A *f3a (void);
  15. extern struct A *f4a (void);
  16. extern struct A *f5a (void);
  17. extern struct A *f6a (void);
  18. extern struct A *f7a (void);
  19. extern struct A *f8a (void);
  20. extern struct A *f9a (void);
  21. extern struct A *f10a (void);
  22. extern int f1b (void);
  23. extern int f2b (void);
  24. extern int f3b (void);
  25. extern int f4b (void);
  26. extern int f5b (void);
  27. extern int f6b (void);
  28. extern int f7b (void);
  29. extern int f8b (void);
  30. extern int f9b (void);
  31. extern int f10b (void);
  32. extern void check1 (void);
  33. extern void check2 (void);
  34. #endif