summaryrefslogtreecommitdiff
path: root/ACE/examples/Export/dll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Export/dll.cpp')
-rw-r--r--ACE/examples/Export/dll.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/ACE/examples/Export/dll.cpp b/ACE/examples/Export/dll.cpp
new file mode 100644
index 00000000000..07705db9d59
--- /dev/null
+++ b/ACE/examples/Export/dll.cpp
@@ -0,0 +1,27 @@
+// $Id$
+#include "dll.h"
+
+int test_variable = 0;
+
+int
+test_function ()
+{
+ test_variable = RETVAL;
+ return RETVAL;
+}
+
+int
+test_class::method ()
+{
+ return RETVAL;
+}
+
+test_class *
+get_dll_singleton ()
+{
+ return TEST_SINGLETON::instance ();
+}
+
+#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
+template ACE_Singleton<test_class, ACE_Null_Mutex> *ACE_Singleton<test_class, ACE_Null_Mutex>::singleton_;
+#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */