Add test coverage for __pascal mangling

llvm-svn: 362329
This commit is contained in:
Nico Weber 2019-06-02 16:47:07 +00:00
parent ccbda6b000
commit d0d32c35d9
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,10 @@ extern "C" void __fastcall f4(void) {}
// WIN: define dso_local x86_fastcallcc void @"\01@f4@0"
// ITANIUM: define dso_local x86_fastcallcc void @"\01@f4@0"
void __pascal f5(void) {}
// WIN: define dso_local void @"?f5@@YCXXZ"
// ITANIUM: define dso_local void @_Z2f5v
struct Foo {
void __stdcall foo();
static void __stdcall bar();

View File

@ -15,3 +15,6 @@
?f1@@YGXXZ
; CHECK: void __stdcall f1(void)
?f5@@YCXXZ
; CHECK: void __pascal f5(void)