Eli Friedman | 56ebe50 | 2009-04-19 21:05:03 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -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 |