summaryrefslogtreecommitdiff
path: root/test cases/unit/98 install all targets/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/98 install all targets/lib.c')
-rw-r--r--test cases/unit/98 install all targets/lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/unit/98 install all targets/lib.c b/test cases/unit/98 install all targets/lib.c
new file mode 100644
index 000000000..2ea9c7dd1
--- /dev/null
+++ b/test cases/unit/98 install all targets/lib.c
@@ -0,0 +1,9 @@
+#if defined _WIN32 || defined __CYGWIN__
+#define DLL_PUBLIC __declspec(dllexport)
+#else
+#define DLL_PUBLIC
+#endif
+
+int DLL_PUBLIC foo(void) {
+ return 0;
+}