diff options
author | dim <dim@FreeBSD.org> | 2012-08-15 20:02:54 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-15 20:02:54 +0000 |
commit | 554bcb69c2d785a011a30e7db87a36a87fe7db10 (patch) | |
tree | 9abb1a658a297776086f4e0dfa6ca533de02104e /test/CodeGen/attributes.c | |
parent | bb67ca86b31f67faee50bd10c3b036d65751745a (diff) | |
download | FreeBSD-src-554bcb69c2d785a011a30e7db87a36a87fe7db10.zip FreeBSD-src-554bcb69c2d785a011a30e7db87a36a87fe7db10.tar.gz |
Vendor import of clang trunk r161861:
http://llvm.org/svn/llvm-project/cfe/trunk@161861
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r-- | test/CodeGen/attributes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c index 4e73af6..e971a79 100644 --- a/test/CodeGen/attributes.c +++ b/test/CodeGen/attributes.c @@ -81,3 +81,11 @@ void t21(void) { } // CHECK: [[FPTRVAR:%[a-z0-9]+]] = load void (i32)** @fptr // CHECK-NEXT: call x86_fastcallcc void [[FPTRVAR]](i32 10) + + +// PR9356: We might want to err on this, but for now at least make sure we +// use the section in the definition. +void __attribute__((section(".foo"))) t22(void); +void __attribute__((section(".bar"))) t22(void) {} + +// CHECK: define void @t22() nounwind section ".bar" |