Lines Matching refs:count
21 static int count;
22 A() {++count;}
23 A(const A&) {++count;}
24 virtual ~A() {--count;}
27 int A::count = 0;
32 static int count;
33 B() {++count;}
34 B(const B&) {++count;}
35 virtual ~B() {--count;}
38 int B::count = 0;
44 assert(A::count == 1);
45 assert(B::count == 0);
48 assert(A::count == 1);
49 assert(B::count == 1);
51 assert(A::count == 0);
52 assert(B::count == 0);
55 assert(A::count == 1);
56 assert(B::count == 1);
59 assert(A::count == 1);
60 assert(B::count == 1);
62 assert(A::count == 0);
63 assert(B::count == 0);