mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +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
45 lines
553 B
C
45 lines
553 B
C
|
|
int __cdecl CdeclFunc0(void)
|
|
{
|
|
return 0x10000;
|
|
}
|
|
|
|
int __cdecl CdeclFunc1(char *p1)
|
|
{
|
|
return 0x10001;
|
|
}
|
|
|
|
int __stdcall StdcallFunc0(void)
|
|
{
|
|
return 0x10010;
|
|
}
|
|
|
|
int __stdcall StdcallFunc1(char *p1)
|
|
{
|
|
return 0x10011;
|
|
}
|
|
|
|
int __stdcall DecoratedStdcallFunc1(char *p1)
|
|
{
|
|
return 0x10021;
|
|
}
|
|
|
|
int __fastcall FastcallFunc0(void)
|
|
{
|
|
return 0x10030;
|
|
}
|
|
|
|
int __fastcall FastcallFunc1(char *p1)
|
|
{
|
|
return 0x10031;
|
|
}
|
|
|
|
int __fastcall DecoratedFastcallFunc1(char *p1)
|
|
{
|
|
return 0x10041;
|
|
}
|
|
|
|
int DataItem1 = 0x10051;
|
|
int DataItem2 = 0x10052;
|
|
|
|
|