reactos/rostests/tests/dllexport/dllexport_test_dll2.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

46 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;