Test case for aligned attribute on function declaration.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 2 Oct 2009 04:45:37 +0000 (04:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 2 Oct 2009 04:45:37 +0000 (04:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83234 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/func-aligned.c [new file with mode: 0644]

diff --git a/test/FrontendC/func-aligned.c b/test/FrontendC/func-aligned.c
new file mode 100644 (file)
index 0000000..40149f4
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
+
+// rdar://7270273
+void foo() __attribute__((aligned (64)));
+void foo() {
+// CHECK: define void @foo() {{.*}} align 64
+}