Added test program for the use of CDetails object from USEMARCON.
[yazproxy-moved-to-github.git] / src / cdetails.cpp
diff --git a/src/cdetails.cpp b/src/cdetails.cpp
new file mode 100644 (file)
index 0000000..aa90157
--- /dev/null
@@ -0,0 +1,26 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <yaz/nmem.h>
+
+#if HAVE_USEMARCON
+#include <objectlist.h>
+
+CDetails *x(CDetails *p)
+{
+    return p;
+}
+#endif
+
+int main(int argc, char **argv)
+{
+#if HAVE_USEMARCON
+    CDetails local;
+    CDetails *ptr = new CDetails();
+
+    x(&local);
+    x(ptr);
+
+    delete ptr;
+#endif
+    exit(0);
+}