summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/decl-microsoft-call-conv.c
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-11-03 21:56:03 +0000
committerReid Kleckner <reid@kleckner.net>2014-11-03 21:56:03 +0000
commit899baf3625db90e3434e8a91335a74f4c49972a1 (patch)
treedd7a3848d0f7f7750029a5f1fb15a191ecb93ce4 /clang/test/Sema/decl-microsoft-call-conv.c
parent7e2b9882b147bf9c26faa7b04b56884ec444bd64 (diff)
downloadbcm5719-llvm-899baf3625db90e3434e8a91335a74f4c49972a1.tar.gz
bcm5719-llvm-899baf3625db90e3434e8a91335a74f4c49972a1.zip
Move the no-prototype calling conv check after decl merging
Now we don't warn on this code: void __stdcall f(void); void __stdcall f(); My previous commit regressed this functionality because I didn't update the relevant test case which used a definition. llvm-svn: 221188
Diffstat (limited to 'clang/test/Sema/decl-microsoft-call-conv.c')
-rw-r--r--clang/test/Sema/decl-microsoft-call-conv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/decl-microsoft-call-conv.c b/clang/test/Sema/decl-microsoft-call-conv.c
index cefaf4f40b0..5a83b38b192 100644
--- a/clang/test/Sema/decl-microsoft-call-conv.c
+++ b/clang/test/Sema/decl-microsoft-call-conv.c
@@ -4,14 +4,19 @@
// This is fine, as CrcGenerateTable*() has a prototype.
void __fastcall CrcGenerateTableFastcall(void);
+void __fastcall CrcGenerateTableFastcall();
void __fastcall CrcGenerateTableFastcall() {}
void __stdcall CrcGenerateTableStdcall(void);
+void __stdcall CrcGenerateTableStdcall();
void __stdcall CrcGenerateTableStdcall() {}
void __thiscall CrcGenerateTableThiscall(void);
+void __thiscall CrcGenerateTableThiscall();
void __thiscall CrcGenerateTableThiscall() {}
void __pascal CrcGenerateTablePascal(void);
+void __pascal CrcGenerateTablePascal();
void __pascal CrcGenerateTablePascal() {}
void __vectorcall CrcGenerateTableVectorcall(void);
+void __vectorcall CrcGenerateTableVectorcall();
void __vectorcall CrcGenerateTableVectorcall() {}
void __fastcall CrcGenerateTableNoProtoFastcall(); // expected-error{{function with no prototype cannot use the fastcall calling convention}}
OpenPOWER on IntegriCloud