summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/thread-specifier.c
blob: 08992a6e229191b732822f5db0313c19162c9f3b (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -emit-llvm -o - %s | grep thread_local | count 4

__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};
}

OpenPOWER on IntegriCloud