aboutsummaryrefslogtreecommitdiffstats
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
commit926c44a79e4e6eb86e44028d9f313640c6238ddf (patch)
treef3cc18f92244d55cc0de942692f7310c2e043bf5 /test/FrontendC
parentdb397e1ea09a961e2b3f16d7ee85eae5f19f8771 (diff)
downloadexternal_llvm-926c44a79e4e6eb86e44028d9f313640c6238ddf.zip
external_llvm-926c44a79e4e6eb86e44028d9f313640c6238ddf.tar.gz
external_llvm-926c44a79e4e6eb86e44028d9f313640c6238ddf.tar.bz2
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 0000000..40149f4
--- /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
+}