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 | |
| 3 | // CHECK: define void @t3() nounwind noinline naked { |
| 4 | __declspec(naked) void t3() {} |
| 5 | |
| 6 | // CHECK: define void @t22() nounwind |
| 7 | void __declspec(nothrow) t22(); |
| 8 | void t22() {} |
| 9 | |
| 10 | // CHECK: define void @t2() nounwind noinline { |
| 11 | __declspec(noinline) void t2() {} |
| 12 | |
| 13 | // CHECK: call void @f20_t() |
| 14 | // CHECK: noreturn |
| 15 | __declspec(noreturn) void f20_t(void); |
| 16 | void f20(void) { f20_t(); } |