diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-27 00:06:04 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-27 00:06:04 +0000 |
commit | 899245792776dd219a3c36eb19b42272e270bc0c (patch) | |
tree | 6ac05a34d42c4b09361726b0125cb335297ee3ee /test/CodeGenCXX/threadsafe-statics.cpp | |
parent | deb8f5d533b7bcd962976ecdbc1464fe754b6de0 (diff) |
Reapply r176133 with testcase fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/threadsafe-statics.cpp')
-rw-r--r-- | test/CodeGenCXX/threadsafe-statics.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/CodeGenCXX/threadsafe-statics.cpp b/test/CodeGenCXX/threadsafe-statics.cpp index a28d0fccbd..9e6550d094 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() #0 +// WITH-TSS: define void @_Z1gv() [[NUW:#[0-9]+]] // WITH-TSS: call i32 @__cxa_guard_acquire // WITH-TSS: call void @__cxa_guard_release // WITH-TSS: ret void @@ -17,14 +17,11 @@ void g() { // NO-TSS: @_ZZ1gvE1a = internal global i32 0, align 4 // NO-TSS: @_ZGVZ1gvE1a = internal global i8 0 -// NO-TSS: define void @_Z1gv() #0 +// NO-TSS: define void @_Z1gv() [[NUW:#[0-9]+]] // 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"={{.*}} } +// WITH-TSS: attributes [[NUW]] = { nounwind } -// NO-TSS: attributes #0 = { nounwind "target-features"={{.*}} } -// NO-TSS: attributes #1 = { "target-features"={{.*}} } +// NO-TSS: attributes [[NUW]] = { nounwind } |