blob: a16103f08f6d4335fa8d655f36de05cd1bc2f894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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};
}
|