aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/thread-specifier.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-22 08:06:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-22 08:06:17 +0000
commitdb4f61f9fb0edc16b5568af0bf6a6729718b349f (patch)
tree37fc5e01275fb98115722568c3296fef86980205 /test/CodeGen/thread-specifier.c
parente4488b8c823bfc3ffe11e6593803497cca7bcdfc (diff)
Don't emit _ZTW wrappers for TLS variables which don't use the C++ thread_local keyword.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/thread-specifier.c')
-rw-r--r--test/CodeGen/thread-specifier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/thread-specifier.c b/test/CodeGen/thread-specifier.c
index a2d3e62c8c..8e21651cd8 100644
--- a/test/CodeGen/thread-specifier.c
+++ b/test/CodeGen/thread-specifier.c
@@ -10,6 +10,9 @@
// CHECK: @i = thread_local(initialexec) global
// CHECK: @j = thread_local(localexec) global
+// CHECK-NOT: @_ZTW
+// CHECK-NOT: @_ZTH
+
__thread int a;
extern __thread int b;
int c() { return *&b; }