Retro68/binutils/ld/testsuite/ld-cygwin/testdll.c

15 lines
205 B
C
Raw Normal View History

2012-03-26 19:18:29 +00:00
extern void exewrite (void);
__attribute((dllimport)) int global_a;
void
dllwrite (void)
{
global_a = 3;
exewrite ();
}
int _stdcall testdll_main(int p1, unsigned long p2, void* p3)
{
return 1;
}