aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-02 00:28:30 +0000
committerEric Christopher <echristo@apple.com>2011-07-02 00:28:30 +0000
commit12c738d8d7aad7f122fbbbab787a0b5b482971a0 (patch)
treec2f207f6c009e1937ac26ee7f88b589fd2fb6a83
parentaa7333c860ac651c75da495217e0d6a9c10c0bb0 (diff)
Add a testcase for r134292.
Part of rdar://9714064 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134295 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/darwin-thread-specifier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/darwin-thread-specifier.c b/test/CodeGen/darwin-thread-specifier.c
new file mode 100644
index 0000000000..605d461aca
--- /dev/null
+++ b/test/CodeGen/darwin-thread-specifier.c
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.0 -emit-llvm -o - %s | FileCheck %s
+// CHECK: @b = thread_local global i32 5, align 4
+__thread int b = 5;