diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-25 07:15:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-25 07:15:16 +0000 |
commit | d620e09c13b1ca32434ce440abf5bb0f3d0979c5 (patch) | |
tree | 7741519fb7d204ac5f8303922943f752d4903cab /test/CodeGen/attributes.c | |
parent | 0a8dead5303bd0cabebf07ab4e8d4f838787e8f1 (diff) |
Add more attributes from the command line to functions.
This is an ongoing process. Any command line option which a back-end cares about
should be added here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r-- | test/CodeGen/attributes.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c index 49746ba523..356a17996a 100644 --- a/test/CodeGen/attributes.c +++ b/test/CodeGen/attributes.c @@ -36,39 +36,39 @@ int t17() { return t15() + t16; } -// CHECK: define void @t1() #2 { +// CHECK: define void @t1() [[NR:#[0-9]+]] { void t1() __attribute__((noreturn)); void t1() { while (1) {} } -// CHECK: define void @t2() #0 { +// CHECK: define void @t2() [[NUW:#[0-9]+]] { void t2() __attribute__((nothrow)); void t2() {} -// CHECK: define weak void @t3() #0 { +// CHECK: define weak void @t3() [[NUW]] { void t3() __attribute__((weak)); void t3() {} -// CHECK: define hidden void @t4() #0 { +// CHECK: define hidden void @t4() [[NUW]] { void t4() __attribute__((visibility("hidden"))); void t4() {} -// CHECK: define void @t7() #2 { +// CHECK: define void @t7() [[NR]] { void t7() __attribute__((noreturn, nothrow)); void t7() { while (1) {} } -// CHECK: define void @t10() #0 section "SECT" { +// CHECK: define void @t10() [[NUW]] section "SECT" { void t10(void) __attribute__((section("SECT"))); void t10(void) {} -// CHECK: define void @t11() #0 section "SECT" { +// CHECK: define void @t11() [[NUW]] section "SECT" { void __attribute__((section("SECT"))) t11(void) {} -// CHECK: define i32 @t19() #0 { +// CHECK: define i32 @t19() [[NUW]] { extern int t19(void) __attribute__((weak_import)); int t19(void) { return 10; } -// CHECK:define void @t20() #0 { +// CHECK:define void @t20() [[NUW]] { // CHECK: call void @abort() // CHECK-NEXT: unreachable void t20(void) { @@ -88,8 +88,7 @@ void t21(void) { void __attribute__((section(".foo"))) t22(void); void __attribute__((section(".bar"))) t22(void) {} -// CHECK: define void @t22() #0 section ".bar" +// CHECK: define void @t22() [[NUW]] section ".bar" -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { "target-features"={{.*}} } -// CHECK: attributes #2 = { noreturn nounwind "target-features"={{.*}} } +// CHECK: attributes [[NUW]] = { nounwind{{.*}} } +// CHECK: attributes [[NR]] = { noreturn nounwind{{.*}} } |