blob: a16103f08f6d4335fa8d655f36de05cd1bc2f894 [file] [log] [blame]
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | grep thread_local | count 4
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | not grep common
__thread int a;
extern __thread int b;
int c() { return &b; }
int d() {
__thread static int e;
__thread static union {float a; int b;} f = {.b = 1};
}