Lines Matching refs:count
22 static int count; member
24 explicit B(int id) : id_(id) {count++;} in B()
25 B(const B& a) : id_(a.id_) {count++;} in B()
26 ~B() {count--;} in ~B()
29 int B::count = 0; member in B
34 static int count; member
36 explicit C1(int id) : B(id-2), id_(id) {count++;} in C1()
37 C1(const C1& a) : B(a.id_-2), id_(a.id_) {count++;} in C1()
38 ~C1() {count--;} in ~C1()
41 int C1::count = 0; member in C1
46 static int count; member
48 explicit C2(int id) : B(id-2), id_(id) {count++;} in C2()
49 C2(const C2& a) : B(a.id_-2), id_(a.id_) {count++;} in C2()
50 ~C2() {count--;} in ~C2()
53 int C2::count = 0; member in C2
58 static int count; member
60 explicit A(int id) : C1(id-1), C2(id-2), id_(id) {count++;} in A()
61 A(const A& a) : C1(a.id_-1), C2(a.id_-2), id_(a.id_) {count++;} in A()
62 ~A() {count--;} in ~A()
65 int A::count = 0; member in A
69 assert(A::count == 0); in f1()
70 assert(C1::count == 0); in f1()
71 assert(C2::count == 0); in f1()
72 assert(B::count == 0); in f1()
74 assert(A::count == 1); in f1()
75 assert(C1::count == 1); in f1()
76 assert(C2::count == 1); in f1()
77 assert(B::count == 2); in f1()
92 assert(A::count == 0); in f2()
93 assert(C1::count == 0); in f2()
94 assert(C2::count == 0); in f2()
95 assert(B::count == 0); in f2()
126 assert(A::count == 0); in f3()
127 assert(C1::count == 0); in f3()
128 assert(C2::count == 0); in f3()
129 assert(B::count == 0); in f3()
153 assert(A::count == 0); in f4()
154 assert(C1::count == 0); in f4()
155 assert(C2::count == 0); in f4()
156 assert(B::count == 0); in f4()
186 assert(A::count == 0); in main()
187 assert(C1::count == 0); in main()
188 assert(C2::count == 0); in main()
189 assert(B::count == 0); in main()