reactos/rostests/tests/dllexport/dllexport_test_dll1.c
Timo Kreuzer 86d2e8f543 [DLLEXPORT_TEST]
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
2014-02-20 20:29:51 +00:00

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;