1 // RUN: clang-cc -triple i686-pc-linux-gnu -emit-llvm -o - %s | grep thread_local | count 4
2 
3 __thread int a;
4 extern __thread int b;
5 int c() { return &b; }
6 int d() {
7   __thread static int e;
8   __thread static union {float a; int b;} f = {.b = 1};
9 }
10 
11