Ensure that we correctly allocate and deallocate nontrivial empty classes
| 30 | |
| 31 | // Ensure that we correctly allocate and deallocate nontrivial empty classes |
| 32 | struct A |
| 33 | { |
| 34 | A() |
| 35 | { |
| 36 | (*output_ptr) << " A::A() " << ctor_counter << "\n"; |
| 37 | ++ctor_counter; |
| 38 | } |
| 39 | |
| 40 | ~A() |
| 41 | { |
| 42 | (*output_ptr) << " A::~A() " << dtor_counter << "\n"; |
| 43 | ++dtor_counter; |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | template <typename T> |
| 48 | void |
no outgoing calls