summaryrefslogtreecommitdiffstats
path: root/test/API/driver/kwsys/testDynloadUse.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/API/driver/kwsys/testDynloadUse.c')
-rw-r--r--test/API/driver/kwsys/testDynloadUse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/API/driver/kwsys/testDynloadUse.c b/test/API/driver/kwsys/testDynloadUse.c
new file mode 100644
index 0000000..5402add
--- /dev/null
+++ b/test/API/driver/kwsys/testDynloadUse.c
@@ -0,0 +1,15 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
+#include "testDynloadImpl.h"
+
+#ifdef _WIN32
+# define DL_EXPORT __declspec(dllexport)
+#else
+# define DL_EXPORT
+#endif
+
+DL_EXPORT int TestLoad()
+{
+ TestDynamicLoaderImplSymbolPointer();
+ return TestDynamicLoaderImplData;
+}