summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/unwind-attr.c
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
commitc33fc4c00453099f4ac180313a67d6eb0f91ce0a (patch)
tree3522c3ac6a80d9d32c581884791649d862af2c76 /clang/test/CodeGen/unwind-attr.c
parent90bc19cd914c9870c1d1701b3a3e290b135c63b6 (diff)
downloadbcm5719-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/CodeGen/unwind-attr.c')
-rw-r--r--clang/test/CodeGen/unwind-attr.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/clang/test/CodeGen/unwind-attr.c b/clang/test/CodeGen/unwind-attr.c
index 3241b0d6146..3a11ce620b5 100644
--- a/clang/test/CodeGen/unwind-attr.c
+++ b/clang/test/CodeGen/unwind-attr.c
@@ -3,22 +3,28 @@
int opaque();
-// CHECK: define [[INT:i.*]] @test0() "target-features"={{.*}} {
-// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind{{.*}} {
+// CHECK: define [[INT:i.*]] @test0() #0 {
+// CHECK-NOEXC: define [[INT:i.*]] @test0() #0 {
int test0(void) {
return opaque();
}
// <rdar://problem/8087431>: locally infer nounwind at -O0
-// CHECK: define [[INT:i.*]] @test1() nounwind{{.*}} {
-// CHECK-NOEXC: define [[INT:i.*]] @test1() nounwind{{.*}} {
+// CHECK: define [[INT:i.*]] @test1() #1 {
+// CHECK-NOEXC: define [[INT:i.*]] @test1() #0 {
int test1(void) {
return 0;
}
// <rdar://problem/8283071>: not for weak functions
-// CHECK: define weak [[INT:i.*]] @test2() "target-features"={{.*}} {
-// CHECK-NOEXC: define weak [[INT:i.*]] @test2() nounwind{{.*}} {
+// CHECK: define weak [[INT:i.*]] @test2() #0 {
+// CHECK-NOEXC: define weak [[INT:i.*]] @test2() #0 {
__attribute__((weak)) int test2(void) {
return 0;
}
+
+// CHECK: attributes #0 = { "target-features"={{.*}} }
+// CHECK: attributes #1 = { nounwind "target-features"={{.*}} }
+
+// CHECK-NOEXC: attributes #0 = { nounwind "target-features"={{.*}} }
+// CHECK-NOEXC: attributes #1 = { "target-features"={{.*}} }
OpenPOWER on IntegriCloud