6 #if defined (_STLP_USE_NAMESPACES) 16 #if !defined (STLPORT) 22 #if !defined (_STLP_USE_EXCEPTIONS) 29 void placement_new_bug();
31 void template_function_partial_ordering();
32 void new_throw_bad_alloc();
42 pint =
new(&int_val)
int();
44 # if defined (_STLP_DEF_CONST_PLCT_NEW_BUG) 57 # if defined (_STLP_BIG_ENDIAN) 61 sizeof(
int) > 4 && *
ptr == 0x00 );
62 # elif defined (_STLP_LITTLE_ENDIAN) 71 vector<int> vect1(10, 0);
72 int* pvect1Front = &vect1.front();
73 vector<int> vect2(10, 0);
74 int* pvect2Front = &vect2.front();
78 # if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER) || defined (_STLP_USE_PARTIAL_SPEC_WORKAROUND) 90 #if defined (STLPORT) && defined (_STLP_USE_EXCEPTIONS) 97 size_t const huge_amount =
size_t(-1) - 1024;
98 void* pvoid =
operator new (huge_amount);
99 #if !defined (_STLP_NEW_DONT_THROW_BAD_ALLOC) 104 operator delete(pvoid);
106 catch (
const bad_alloc&)
108 #if defined (_STLP_NEW_DONT_THROW_BAD_ALLOC) CPPUNIT_TEST_SUITE_REGISTRATION(ConfigTest)
void swap(StackAllocator< _Tp > &__a, StackAllocator< _Tp > &__b)
#define CPPUNIT_TEST_SUITE(X)
void new_throw_bad_alloc()
#define CPPUNIT_TEST_SUITE_END()
void template_function_partial_ordering()
#define CPPUNIT_ASSERT(X)