summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/decl-microsoft-call-conv.c
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-10-24 17:42:17 +0000
committerReid Kleckner <reid@kleckner.net>2014-10-24 17:42:17 +0000
commitd7857f05f4c56cf7bd22ce5a6a8d78df6043ab6d (patch)
treec423a984ad030a579ab4d6be0a136c21903c1c04 /clang/test/Sema/decl-microsoft-call-conv.c
parentd024f528b474bd0446ced3eb0fe660e71bfa87eb (diff)
downloadbcm5719-llvm-d7857f05f4c56cf7bd22ce5a6a8d78df6043ab6d.tar.gz
bcm5719-llvm-d7857f05f4c56cf7bd22ce5a6a8d78df6043ab6d.zip
Add frontend support for __vectorcall
Wire it through everywhere we have support for fastcall, essentially. This allows us to parse the MSVC "14" CTP headers, but we will miscompile them because LLVM doesn't support __vectorcall yet. Reviewed By: Aaron Ballman Differential Revision: http://reviews.llvm.org/D5808 llvm-svn: 220573
Diffstat (limited to 'clang/test/Sema/decl-microsoft-call-conv.c')
-rw-r--r--clang/test/Sema/decl-microsoft-call-conv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/test/Sema/decl-microsoft-call-conv.c b/clang/test/Sema/decl-microsoft-call-conv.c
index fefa8626eb6..c8fb6e10f9b 100644
--- a/clang/test/Sema/decl-microsoft-call-conv.c
+++ b/clang/test/Sema/decl-microsoft-call-conv.c
@@ -11,11 +11,14 @@ void __thiscall CrcGenerateTableThiscall(void);
void __thiscall CrcGenerateTableThiscall() {}
void __pascal CrcGenerateTablePascal(void);
void __pascal CrcGenerateTablePascal() {}
+void __vectorcall CrcGenerateTableVectorcall(void);
+void __vectorcall CrcGenerateTableVectorcall() {}
-void __fastcall CrcGenerateTableNoProtoFastcall() {} // expected-error{{function with no prototype cannot use the callee-cleanup fastcall calling convention}}
-void __stdcall CrcGenerateTableNoProtoStdcall() {} // expected-warning{{function with no prototype cannot use the callee-cleanup stdcall calling convention}}
-void __thiscall CrcGenerateTableNoProtoThiscall() {} // expected-error{{function with no prototype cannot use the callee-cleanup thiscall calling convention}}
-void __pascal CrcGenerateTableNoProtoPascal() {} // expected-error{{function with no prototype cannot use the callee-cleanup pascal calling convention}}
+void __fastcall CrcGenerateTableNoProtoFastcall() {} // expected-error{{function with no prototype cannot use the fastcall calling convention}}
+void __stdcall CrcGenerateTableNoProtoStdcall() {} // expected-warning{{function with no prototype cannot use the stdcall calling convention}}
+void __thiscall CrcGenerateTableNoProtoThiscall() {} // expected-error{{function with no prototype cannot use the thiscall calling convention}}
+void __pascal CrcGenerateTableNoProtoPascal() {} // expected-error{{function with no prototype cannot use the pascal calling convention}}
+void __vectorcall CrcGenerateTableNoProtoVectorcall() {} // expected-error{{function with no prototype cannot use the vectorcall calling convention}}
// Regular calling convention is fine.
void CrcGenerateTableNoProto() {}
OpenPOWER on IntegriCloud