diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2012-02-23 22:46:33 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2012-02-23 22:46:33 +0000 |
commit | 9428772f16e379bcad35254251f96e3d1077c730 (patch) | |
tree | 3541d6aec69130b59746e015c0b3c9d7fc5bdfbc /test/CodeGen/ms-declspecs.c | |
parent | 97df54e0c075bc8d6a869597e771dad0c11a2180 (diff) |
Turned on support for __declspecs: noreturn, noinline, nothrow and naked in MS compatibility mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-declspecs.c')
-rw-r--r-- | test/CodeGen/ms-declspecs.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/ms-declspecs.c b/test/CodeGen/ms-declspecs.c new file mode 100644 index 0000000000..d3235aee43 --- /dev/null +++ b/test/CodeGen/ms-declspecs.c @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-compatibility -o - | FileCheck %s + +// CHECK: define void @t3() nounwind noinline naked { +__declspec(naked) void t3() {} + +// CHECK: define void @t22() nounwind +void __declspec(nothrow) t22(); +void t22() {} + +// CHECK: define void @t2() nounwind noinline { +__declspec(noinline) void t2() {} + +// CHECK: call void @f20_t() +// CHECK: noreturn +__declspec(noreturn) void f20_t(void); +void f20(void) { f20_t(); } |