summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ms-declspecs.c
diff options
context:
space:
mode:
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 d3235ae..91862a7 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() {}
OpenPOWER on IntegriCloud