Eli Friedman | 4fb71b0 | 2009-04-19 21:48:33 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple i686-pc-linux-gnu -emit-llvm -o - %s | grep thread_local | count 4 |
Eli Friedman | 56ebe50 | 2009-04-19 21:05:03 +0000 | [diff] [blame] | 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 |