Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | grep thread_local | count 4 |
Eric Christopher | 91f31dc | 2010-08-08 01:37:14 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | not grep common |
Eli Friedman | 56ebe50 | 2009-04-19 21:05:03 +0000 | [diff] [blame] | 3 | |
| 4 | __thread int a; |
| 5 | extern __thread int b; |
| 6 | int c() { return &b; } |
| 7 | int d() { |
| 8 | __thread static int e; |
| 9 | __thread static union {float a; int b;} f = {.b = 1}; |
| 10 | } |
| 11 | |