summaryrefslogtreecommitdiff
path: root/ACE/tests/Based_Pointer_Test_Lib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Based_Pointer_Test_Lib.cpp')
-rw-r--r--ACE/tests/Based_Pointer_Test_Lib.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/ACE/tests/Based_Pointer_Test_Lib.cpp b/ACE/tests/Based_Pointer_Test_Lib.cpp
new file mode 100644
index 00000000000..24c586be925
--- /dev/null
+++ b/ACE/tests/Based_Pointer_Test_Lib.cpp
@@ -0,0 +1,32 @@
+
+//=============================================================================
+/**
+ * @file Based_Pointer_Test_Lib.cpp
+ *
+ * $Id$
+ *
+ * This test confirms the function of the Based_Pointer_Repository
+ *
+ *
+ * @author Steve Williams <steve@telxio>
+ */
+//=============================================================================
+
+
+#include "ace/ACE.h"
+#include "ace/svc_export.h"
+#include "ace/Based_Pointer_Repository.h"
+
+#if defined (ACE_OPENVMS)
+ // with OPENVMS symbol names > 31 cause us trouble with dlsym()
+extern "C" ACE_Svc_Export void *
+get_based_pointer_repo_inst (void)
+#else
+extern "C" ACE_Svc_Export void *
+get_based_pointer_repository_instance (void)
+#endif
+{
+ void* baddr = ACE_BASED_POINTER_REPOSITORY::instance();
+ return baddr;
+}
+