summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/threadsafe-statics.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-20 07:22:19 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-20 07:22:19 +0000
commitf7a9da053f5bd6c18450c1796d953b42c3b7ad3a (patch)
tree3a4accecdb98419478035c3bf5be57df768e0625 /test/CodeGenCXX/threadsafe-statics.cpp
parent5251abea41b446c26e3239c8dd6c7edea6fc335d (diff)
Modify the tests to use attribute group references instead of listing the
function attributes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/threadsafe-statics.cpp')
-rw-r--r--test/CodeGenCXX/threadsafe-statics.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CodeGenCXX/threadsafe-statics.cpp b/test/CodeGenCXX/threadsafe-statics.cpp
index 8afc2746f4..a28d0fccbd 100644
--- a/test/CodeGenCXX/threadsafe-statics.cpp
+++ b/test/CodeGenCXX/threadsafe-statics.cpp
@@ -6,7 +6,7 @@ int f();
// WITH-TSS: @_ZZ1gvE1a = internal global i32 0, align 4
// WITH-TSS: @_ZGVZ1gvE1a = internal global i64 0
-// WITH-TSS: define void @_Z1gv() nounwind
+// WITH-TSS: define void @_Z1gv() #0
// WITH-TSS: call i32 @__cxa_guard_acquire
// WITH-TSS: call void @__cxa_guard_release
// WITH-TSS: ret void
@@ -17,7 +17,14 @@ void g() {
// NO-TSS: @_ZZ1gvE1a = internal global i32 0, align 4
// NO-TSS: @_ZGVZ1gvE1a = internal global i8 0
-// NO-TSS: define void @_Z1gv() nounwind
+// NO-TSS: define void @_Z1gv() #0
// NO-TSS-NOT: call i32 @__cxa_guard_acquire
// NO-TSS-NOT: call void @__cxa_guard_release
// NO-TSS: ret void
+
+// WITH-TSS: attributes #0 = { nounwind "target-features"={{.*}} }
+// WITH-TSS: attributes #1 = { nounwind }
+// WITH-TSS: attributes #2 = { "target-features"={{.*}} }
+
+// NO-TSS: attributes #0 = { nounwind "target-features"={{.*}} }
+// NO-TSS: attributes #1 = { "target-features"={{.*}} }