sharedlib.c 217 B

12345678910
  1. #include <stdio.h>
  2. int global_var = 42;
  3. _Thread_local int tls_var = 21;
  4. void print()
  5. {
  6. fprintf(stdout, "sharedlib: global_var == %d\n", global_var);
  7. fprintf(stdout, "sharedlib: tls_var == %d\n", tls_var);
  8. }