summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cxx11-thread-local-reference.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
commit9fd2f7101b1167e44f3a6676619733466db55879 (patch)
tree0d2218a005b66bdedb74221b902e8bb92c055794 /test/CodeGenCXX/cxx11-thread-local-reference.cpp
parentae328a93ad3fe615e1080d5777603fd37dc633a4 (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/cxx11-thread-local-reference.cpp')
-rw-r--r--test/CodeGenCXX/cxx11-thread-local-reference.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGenCXX/cxx11-thread-local-reference.cpp b/test/CodeGenCXX/cxx11-thread-local-reference.cpp
index 8b2ac5eed8..048a0bd45a 100644
--- a/test/CodeGenCXX/cxx11-thread-local-reference.cpp
+++ b/test/CodeGenCXX/cxx11-thread-local-reference.cpp
@@ -21,8 +21,8 @@ int &g() { return r; }
// DARWIN: call cxx_fast_tlscc i32* @_ZTW1r()
// CHECK: ret i32* %{{.*}}
-// LINUX: define weak_odr hidden i32* @_ZTW1r() {
-// DARWIN: define cxx_fast_tlscc i32* @_ZTW1r() [[ATTR:#[0-9]+]] {
+// LINUX: define weak_odr hidden i32* @_ZTW1r() [[ATTR0:#[0-9]+]] {
+// DARWIN: define cxx_fast_tlscc i32* @_ZTW1r() [[ATTR1:#[0-9]+]] {
// CHECK: call void @_ZTH1r()
// CHECK: load i32*, i32** @r, align 8
// CHECK: ret i32* %{{.*}}
@@ -30,4 +30,5 @@ int &g() { return r; }
// CHECK-LABEL: define internal void @__tls_init()
// CHECK: call void @[[R_INIT]]()
-// DARWIN: attributes [[ATTR]] = { nounwind }
+// LINUX: attributes [[ATTR0]] = { {{.*}}"target-features"{{.*}} }
+// DARWIN: attributes [[ATTR1]] = { {{.*}}nounwind{{.*}}"target-features"{{.*}} }