aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-declspecs.c
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2012-06-19 13:49:26 +0000
committerAaron Ballman <aaron@aaronballman.com>2012-06-19 13:49:26 +0000
commited35fd1c6db1680b4526ba64c94e5da6ec203be7 (patch)
tree18ac8c2240de3141ff98114ea78325435b42ab93 /test/CodeGen/ms-declspecs.c
parentc20c4e79ae1957ec5a88d7653a0aeda24b67ae3a (diff)
Improves parsing and semantic analysis for MS __declspec attributes. This includes support for the align (which fixes PR12631).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-declspecs.c')
-rw-r--r--test/CodeGen/ms-declspecs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/ms-declspecs.c b/test/CodeGen/ms-declspecs.c
index d3235aee43..91862a73b0 100644
--- a/test/CodeGen/ms-declspecs.c
+++ b/test/CodeGen/ms-declspecs.c
@@ -1,5 +1,13 @@
// RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s
+struct __declspec(align(16)) S {
+ char x;
+};
+union { struct S s; } u;
+
+// CHECK: @u = {{.*}}zeroinitializer, align 16
+
+
// CHECK: define void @t3() nounwind noinline naked {
__declspec(naked) void t3() {}