MCPcopy Create free account
hub / github.com/boostorg/build / F

Class F

v2/engine/boehm_gc/tests/test_cpp.cc:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153class F: public E {public:
154 /* A collectable class with clean-up, a base with clean-up, and a
155 member with clean-up. */
156
157 F() {
158 nAllocated++;}
159 ~F() {
160 nFreed++;}
161 static void Test() {
162 my_assert( nFreed >= .8 * nAllocated );
163 my_assert( 2 * nFreed == E::nFreed );}
164
165 E e;
166 static int nFreed;
167 static int nAllocated;};
168
169int F::nFreed = 0;
170int F::nAllocated = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected