diff options
Diffstat (limited to 'ld/testsuite/ld-cygwin/testdll.c')
-rw-r--r-- | ld/testsuite/ld-cygwin/testdll.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cygwin/testdll.c b/ld/testsuite/ld-cygwin/testdll.c new file mode 100644 index 0000000..2064307 --- /dev/null +++ b/ld/testsuite/ld-cygwin/testdll.c @@ -0,0 +1,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; +} |