Lines Matching refs:count
31 static int count; member
33 explicit B(int id) : id_(id) {count++;} in B()
34 B(const B& a) : id_(a.id_) {count++;} in B()
35 ~B() {count--;} in ~B()
38 int B::count = 0; member in B
43 static int count; member
45 explicit C1(int id) : B(id-2), id_(id) {count++;} in C1()
46 C1(const C1& a) : B(a.id_-2), id_(a.id_) {count++;} in C1()
47 ~C1() {count--;} in ~C1()
50 int C1::count = 0; member in C1
55 static int count; member
57 explicit C2(int id) : B(id-2), id_(id) {count++;} in C2()
58 C2(const C2& a) : B(a.id_-2), id_(a.id_) {count++;} in C2()
59 ~C2() {count--;} in ~C2()
62 int C2::count = 0; member in C2
67 static int count; member
69 explicit A(int id) : C1(id-1), C2(id-2), id_(id) {count++;} in A()
70 A(const A& a) : C1(a.id_-1), C2(a.id_-2), id_(a.id_) {count++;} in A()
71 ~A() {count--;} in ~A()
74 int A::count = 0; member in A
78 assert(A::count == 0); in f1()
79 assert(C1::count == 0); in f1()
80 assert(C2::count == 0); in f1()
81 assert(B::count == 0); in f1()
83 assert(A::count == 1); in f1()
84 assert(C1::count == 1); in f1()
85 assert(C2::count == 1); in f1()
86 assert(B::count == 2); in f1()
101 assert(A::count == 0); in f2()
102 assert(C1::count == 0); in f2()
103 assert(C2::count == 0); in f2()
104 assert(B::count == 0); in f2()
135 assert(A::count == 0); in f3()
136 assert(C1::count == 0); in f3()
137 assert(C2::count == 0); in f3()
138 assert(B::count == 0); in f3()
162 assert(A::count == 0); in f4()
163 assert(C1::count == 0); in f4()
164 assert(C2::count == 0); in f4()
165 assert(B::count == 0); in f4()
195 assert(A::count == 0); in main()
196 assert(C1::count == 0); in main()
197 assert(C2::count == 0); in main()
198 assert(B::count == 0); in main()