aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/function-attributes.c
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-02-13 15:54:06 +0000
committerCharles Davis <cdavis@mines.edu>2010-02-13 15:54:06 +0000
commit74f7293eb30bf77355c20a3c2cad7b67d8ce7388 (patch)
tree339b7c83a006f72067f796140524acf83e38ba83 /test/CodeGen/function-attributes.c
parentfd3194bedbaddadd21458e68ffe810b80d76b0b1 (diff)
Emit the 'alignstack' LLVM function attribute when we encounter a function
marked 'force_align_arg_pointer'. Almost there; now all I need to do is finish up the backend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/function-attributes.c')
-rw-r--r--test/CodeGen/function-attributes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c
index 8ddaa28eed..3a1030a61b 100644
--- a/test/CodeGen/function-attributes.c
+++ b/test/CodeGen/function-attributes.c
@@ -81,3 +81,11 @@ void f14(int a) {
// CHECK: {
void f15(void) {
}
+
+// PR5254
+// CHECK: define void @f16
+// CHECK: alignstack(16)
+// CHECK: {
+void __attribute__((force_align_arg_pointer)) f16(void) {
+}
+