[cfe-commits] r156726 - /cfe/trunk/test/CodeGen/attributes.c

Rafael Espindola rafael.espindola at gmail.com
Sat May 12 18:56:10 PDT 2012


Author: rafael
Date: Sat May 12 20:56:10 2012
New Revision: 156726

URL: http://llvm.org/viewvc/llvm-project?rev=156726&view=rev
Log:
We were already passing the case in pr9356. Add it to attributes.c to make
sure we don't regress. I will add a warning in a sec.

Modified:
    cfe/trunk/test/CodeGen/attributes.c

Modified: cfe/trunk/test/CodeGen/attributes.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/attributes.c?rev=156726&r1=156725&r2=156726&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/attributes.c (original)
+++ cfe/trunk/test/CodeGen/attributes.c Sat May 12 20:56:10 2012
@@ -81,3 +81,11 @@
 }
 // 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"





More information about the cfe-commits mailing list