1 2 3 4 5 6 7 8 9 10
#include "tls1.h" #include <stdlib.h> static __thread int dummy; __thread struct A local; int main() { exit (dummy + local.a + local.b + local.c); }