From 926c44a79e4e6eb86e44028d9f313640c6238ddf Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 2 Oct 2009 04:45:37 +0000 Subject: 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 --- test/FrontendC/func-aligned.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/FrontendC/func-aligned.c (limited to 'test/FrontendC') 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 +} -- cgit v1.1