MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / A

Class A

tests/external/array_02.cpp:32–45  ·  view source on GitHub ↗

Ensure that we correctly allocate and deallocate nontrivial empty classes

Source from the content-addressed store, hash-verified

30
31// Ensure that we correctly allocate and deallocate nontrivial empty classes
32struct 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
47template <typename T>
48void

Calls

no outgoing calls

Tested by 1

testPascalFunction · 0.68