blob: eb41d3b52f764be4e9ce635a9bf2164a6bc3ab98 [file] [log] [blame]
Aaron Ballman94287722012-02-23 22:46:33 +00001// RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s
2
Aaron Ballmanfc685ac2012-06-19 22:09:27 +00003struct __declspec(align(16)) S {
4 char x;
5};
6union { struct S s; } u;
7
8// CHECK: @u = {{.*}}zeroinitializer, align 16
9
10
Bill Wendlingc0dcc2d2013-02-15 21:30:01 +000011// CHECK: define void @t3() naked noinline nounwind {{.*}} {
Aaron Ballman94287722012-02-23 22:46:33 +000012__declspec(naked) void t3() {}
13
14// CHECK: define void @t22() nounwind
15void __declspec(nothrow) t22();
16void t22() {}
17
Bill Wendlingc0dcc2d2013-02-15 21:30:01 +000018// CHECK: define void @t2() noinline nounwind {{.*}} {
Aaron Ballman94287722012-02-23 22:46:33 +000019__declspec(noinline) void t2() {}
20
21// CHECK: call void @f20_t()
22// CHECK: noreturn
23__declspec(noreturn) void f20_t(void);
24void f20(void) { f20_t(); }