summaryrefslogtreecommitdiff
path: root/test/FrontendC
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-02 04:45:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-02 04:45:37 +0000
commit1ec8e194eb28bc451abab3624ff2cb85f22f7b6c (patch)
treef3cc18f92244d55cc0de942692f7310c2e043bf5 /test/FrontendC
parent63bcbb72f75c92e3eff4d994eb1e8cb6d64c6e9b (diff)
downloadllvm-1ec8e194eb28bc451abab3624ff2cb85f22f7b6c.tar.gz
llvm-1ec8e194eb28bc451abab3624ff2cb85f22f7b6c.tar.bz2
llvm-1ec8e194eb28bc451abab3624ff2cb85f22f7b6c.tar.xz
Test case for aligned attribute on function declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/func-aligned.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendC/func-aligned.c b/test/FrontendC/func-aligned.c
new file mode 100644
index 0000000000..40149f49d8
--- /dev/null
+++ b/test/FrontendC/func-aligned.c
@@ -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
+}