From c33fc4c00453099f4ac180313a67d6eb0f91ce0a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 20 Feb 2013 07:22:19 +0000 Subject: Modify the tests to use attribute group references instead of listing the function attributes. llvm-svn: 175606 --- clang/test/CodeGen/unwind-attr.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'clang/test/CodeGen/unwind-attr.c') 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(); } // : 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; } // : 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"={{.*}} } -- cgit v1.2.3