Aaron Ballman | 9428772 | 2012-02-23 22:46:33 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s |
| 2 | |
Aaron Ballman | fc685ac | 2012-06-19 22:09:27 +0000 | [diff] [blame] | 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 | |
Aaron Ballman | 9428772 | 2012-02-23 22:46:33 +0000 | [diff] [blame] | 11 | // CHECK: define void @t3() nounwind noinline naked { |
| 12 | __declspec(naked) void t3() {} |
| 13 | |
| 14 | // CHECK: define void @t22() nounwind |
| 15 | void __declspec(nothrow) t22(); |
| 16 | void t22() {} |
| 17 | |
| 18 | // CHECK: define void @t2() nounwind noinline { |
| 19 | __declspec(noinline) void t2() {} |
| 20 | |
| 21 | // CHECK: call void @f20_t() |
| 22 | // CHECK: noreturn |
| 23 | __declspec(noreturn) void f20_t(void); |
| 24 | void f20(void) { f20_t(); } |