tst-tlsmod15b.c 206 B

1234567891011121314151617
  1. #include "tst-tls10.h"
  2. #ifdef USE_TLS__THREAD
  3. __thread int mod15b_var __attribute__((tls_model("initial-exec")));
  4. int
  5. in_dso (void)
  6. {
  7. return mod15b_var;
  8. }
  9. #else
  10. int
  11. in_dso (void)
  12. {
  13. return 0;
  14. }
  15. #endif