mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
86d2e8f543
Add a test that checks the ability to link to function and data exports with cdecl, stdcall and c++ mangled names, including forwarders. It just prints "done". Feel free to convert it into a proper rostests, if you think it's required. svn path=/trunk/; revision=62269
49 lines
583 B
C
49 lines
583 B
C
|
|
int __cdecl CdeclFunc0(void)
|
|
{
|
|
return 0x0;
|
|
}
|
|
|
|
int __cdecl CdeclFunc1(char *p1)
|
|
{
|
|
return 0x1;
|
|
}
|
|
|
|
int __stdcall StdcallFunc0(void)
|
|
{
|
|
return 0x10;
|
|
}
|
|
|
|
int __stdcall StdcallFunc1(char *p1)
|
|
{
|
|
return 0x11;
|
|
}
|
|
|
|
int __stdcall DecoratedStdcallFunc1(char *p1)
|
|
{
|
|
return 0x21;
|
|
}
|
|
|
|
int __fastcall FastcallFunc0(void)
|
|
{
|
|
return 0x30;
|
|
}
|
|
|
|
int __fastcall FastcallFunc1(char *p1)
|
|
{
|
|
return 0x31;
|
|
}
|
|
|
|
int __fastcall DecoratedFastcallFunc1(char *p1)
|
|
{
|
|
return 0x42;
|
|
}
|
|
|
|
int __stdcall ExportByOrdinal1(char *p1)
|
|
{
|
|
return 0x11;
|
|
}
|
|
|
|
int DataItem1 = 0x51;
|
|
int DataItem2 = 0x52;
|
|
|