summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/cxx11-thread-local.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2016-01-15 03:34:06 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2016-01-15 03:34:06 +0000
commit26907f9236d84d2ccc55a04c8fd1ceb63d34d112 (patch)
tree463d771a4d96d93018793417947fc3ea0714adea /clang/test/CodeGenCXX/cxx11-thread-local.cpp
parent4769517b7b5745853db9cc702862aacce580ac81 (diff)
downloadbcm5719-llvm-26907f9236d84d2ccc55a04c8fd1ceb63d34d112.tar.gz
bcm5719-llvm-26907f9236d84d2ccc55a04c8fd1ceb63d34d112.zip
[CodeGen] Attach attributes to thread local wrapper function.
This commit is a follow-up to r251734, r251476, and r249735, which fixes a bug where function attributes were not attached to thread local wrapper functions. rdar://problem/20828324 llvm-svn: 257865
Diffstat (limited to 'clang/test/CodeGenCXX/cxx11-thread-local.cpp')
-rw-r--r--clang/test/CodeGenCXX/cxx11-thread-local.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/cxx11-thread-local.cpp b/clang/test/CodeGenCXX/cxx11-thread-local.cpp
index b5bcc5e23ec..40f33e0848b 100644
--- a/clang/test/CodeGenCXX/cxx11-thread-local.cpp
+++ b/clang/test/CodeGenCXX/cxx11-thread-local.cpp
@@ -217,7 +217,7 @@ void set_anon_i() {
// CHECK: }
-// LINUX: declare extern_weak void @_ZTH1b()
+// LINUX: declare extern_weak void @_ZTH1b() [[ATTR:#[0-9]+]]
// LINUX-LABEL: define internal i32* @_ZTWL1d()
@@ -229,3 +229,5 @@ void set_anon_i() {
// DARWIN-LABEL: define cxx_fast_tlscc i32* @_ZTWN1U1mE()
// CHECK: call void @_ZTHN1U1mE()
// CHECK: ret i32* @_ZN1U1mE
+
+// LINUX: attributes [[ATTR]] = { {{.+}} }
OpenPOWER on IntegriCloud