From 38c9ad9e725cf24607d50cce1f17eaaa53e90a6e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 19 Jun 2012 13:49:26 +0000 Subject: Improves parsing and semantic analysis for MS __declspec attributes. This includes support for the align (which fixes PR12631). llvm-svn: 158717 --- clang/test/CodeGen/ms-declspecs.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/test/CodeGen/ms-declspecs.c') diff --git a/clang/test/CodeGen/ms-declspecs.c b/clang/test/CodeGen/ms-declspecs.c index d3235aee436..91862a73b09 100644 --- a/clang/test/CodeGen/ms-declspecs.c +++ b/clang/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() {} -- cgit v1.2.3