Definition at line 15 of file allocator_test.cpp.
◆ bad_alloc_test()
void AllocatorTest::bad_alloc_test |
( |
| ) |
|
|
protected |
Definition at line 56 of file allocator_test.cpp.
57{
59 BigStructAllocType bigStructAlloc;
60
61 try {
62
63 BigStructAllocType::pointer pbigStruct = bigStructAlloc.
allocate(1024 * 1024 * 1024);
64
65
67
68
69 bigStructAlloc.deallocate(pbigStruct, 1024 * 1024 * 1024);
70 }
71 catch (bad_alloc const&) {
72 }
73 catch (...) {
74
75
77 }
78}
_Tp * allocate(size_type __n, const void *=0)
#define CPPUNIT_ASSERT(X)
◆ CPPUNIT_TEST() [1/2]
◆ CPPUNIT_TEST() [2/2]
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
AllocatorTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
|
private |
◆ per_thread_alloc()
void AllocatorTest::per_thread_alloc |
( |
| ) |
|
|
protected |
◆ zero_allocation()
void AllocatorTest::zero_allocation |
( |
| ) |
|
|
protected |
Definition at line 38 of file allocator_test.cpp.
39{
41 CharAllocator charAllocator;
42
44 charAllocator.deallocate(
buf, 0);
45
46 charAllocator.deallocate(0, 0);
47}
GLenum GLuint GLenum GLsizei const GLchar * buf
The documentation for this class was generated from the following file: