diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-02-20 07:22:19 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-02-20 07:22:19 +0000 |
| commit | c33fc4c00453099f4ac180313a67d6eb0f91ce0a (patch) | |
| tree | 3522c3ac6a80d9d32c581884791649d862af2c76 /clang/test/CodeGenCXX/threadsafe-statics.cpp | |
| parent | 90bc19cd914c9870c1d1701b3a3e290b135c63b6 (diff) | |
| download | bcm5719-llvm-c33fc4c00453099f4ac180313a67d6eb0f91ce0a.tar.gz bcm5719-llvm-c33fc4c00453099f4ac180313a67d6eb0f91ce0a.zip | |
Modify the tests to use attribute group references instead of listing the
function attributes.
llvm-svn: 175606
Diffstat (limited to 'clang/test/CodeGenCXX/threadsafe-statics.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/threadsafe-statics.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/threadsafe-statics.cpp b/clang/test/CodeGenCXX/threadsafe-statics.cpp index 8afc2746f42..a28d0fccbd2 100644 --- a/clang/test/CodeGenCXX/threadsafe-statics.cpp +++ b/clang/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"={{.*}} } |

