tst-tls10.h 824 B

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