1 // RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s 2 3 struct __declspec(align(16)) S { 4 char x; 5 }; 6 union { struct S s; } u; 7 8 // CHECK: @u = {{.*}}zeroinitializer, align 16 9 10 11 // CHECK: define void @t3() [[NAKED:#[0-9]+]] { 12 __declspec(naked) void t3() {} 13 14 // CHECK: define void @t22() [[NUW:#[0-9]+]] 15 void __declspec(nothrow) t22(); 16 void t22() {} 17 18 // CHECK: define void @t2() [[NI:#[0-9]+]] { 19 __declspec(noinline) void t2() {} 20 21 // CHECK: call void @f20_t() [[NR:#[0-9]+]] 22 __declspec(noreturn) void f20_t(void); 23 void f20(void) { f20_t(); } 24 25 // CHECK: attributes [[NAKED]] = { naked noinline nounwind{{.*}} } 26 // CHECK: attributes [[NUW]] = { nounwind{{.*}} } 27 // CHECK: attributes [[NI]] = { noinline nounwind{{.*}} } 28 // CHECK: attributes [[NR]] = { noreturn } 29