summaryrefslogtreecommitdiff
path: root/ACE/tests/Malloc_Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Malloc_Test.h')
-rw-r--r--ACE/tests/Malloc_Test.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/ACE/tests/Malloc_Test.h b/ACE/tests/Malloc_Test.h
new file mode 100644
index 00000000000..8fda7368ee4
--- /dev/null
+++ b/ACE/tests/Malloc_Test.h
@@ -0,0 +1,44 @@
+// $Id$
+//
+// ============================================================================
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// Malloc_Test.h
+//
+// = DESCRIPTION
+// This class gets its own header file to work around AIX C++
+// compiler "features" related to template instantiation... It is
+// only used by Malloc_Test.cpp.
+//
+// = AUTHOR
+// Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+// ============================================================================
+
+#ifndef ACE_TESTS_MALLOC_TEST_H
+#define ACE_TESTS_MALLOC_TEST_H
+
+#include "ace/Based_Pointer_T.h"
+
+// Some test data.
+struct Long_Test
+{
+ ACE_Based_Pointer_Basic<long> bpl_;
+ long array_[10];
+};
+
+// Some more test data.
+struct Test_Data
+{
+ int i1_;
+ int i2_;
+ int i3_;
+ double d1_;
+ ACE_Based_Pointer<Test_Data> next_;
+ ACE_Based_Pointer<Long_Test> long_test_;
+};
+
+#endif /* ACE_TESTS_MALLOC_TEST_H */