tls.c 192 B

12345678910
  1. #include <stdio.h>
  2. _Thread_local int tbss = 0;
  3. _Thread_local int tdata = 1;
  4. int main(int argc, char ** argv) {
  5. printf("%d == 0\n", tbss);
  6. printf("%d == 1\n", tdata);
  7. return 0;
  8. }