aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cygwin/testdll.c
blob: 206430737abb8264424fdf5833146ac903f64dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}