aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cygwin/testexe.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-06-02 09:11:01 +0000
committerNick Clifton <nickc@redhat.com>2003-06-02 09:11:01 +0000
commit3bb727441d45dc357080da05218af31275d03e92 (patch)
treee2509d15fb48d172e908b3602c838281d5b21d89 /ld/testsuite/ld-cygwin/testexe.c
parent03a1c9a70857253f0a7a2d7a29a0f627ffc632bd (diff)
downloadgdb-3bb727441d45dc357080da05218af31275d03e92.zip
gdb-3bb727441d45dc357080da05218af31275d03e92.tar.gz
gdb-3bb727441d45dc357080da05218af31275d03e92.tar.bz2
Add new test for cygwin target: building an executable with an export table.
Diffstat (limited to 'ld/testsuite/ld-cygwin/testexe.c')
-rw-r--r--ld/testsuite/ld-cygwin/testexe.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cygwin/testexe.c b/ld/testsuite/ld-cygwin/testexe.c
new file mode 100644
index 0000000..333c389
--- /dev/null
+++ b/ld/testsuite/ld-cygwin/testexe.c
@@ -0,0 +1,16 @@
+int global_a = 2;
+
+void
+exewrite (void)
+{
+ global_a = 1;
+}
+
+extern void dllwrite (void);
+
+int _stdcall
+testexe_main (void* p1, void *p2, char* p3, int p4)
+{
+ dllwrite ();
+ return 0;
+}