Lines Matching refs:C1
40 struct C1 struct
45 explicit C1(int id) : B(id-2), id_(id) {count++;} in C1() argument
46 C1(const C1& a) : B(a.id_-2), id_(a.id_) {count++;} in C1() argument
47 ~C1() {count--;} in ~C1() argument
50 int C1::count = 0;
65 : C1, C2
69 explicit A(int id) : B(id+3), C1(id-1), C2(id-2), id_(id) {count++;} in A()
70 A(const A& a) : B(a.id_+3), C1(a.id_-1), C2(a.id_-2), id_(a.id_) {count++;} in A()
79 assert(C1::count == 0); in f1()
84 assert(C1::count == 1); in f1()
89 assert(static_cast<C1&>(a).id_ == 4); in f1()
101 assert(C1::count == 0); in f2()
110 assert(static_cast<const C1&>(a).id_ == 4); in f2()
115 catch (const C1&) in f2()
134 assert(C1::count == 0); in f3()
145 catch (const C1& c1) in f3()
160 assert(C1::count == 0); in f4()
175 catch (const C1&) in f4()
186 assert(C1::count == 0); in f5()
192 catch (const C1& c1) // can catch C1 in f5()
219 assert(C1::count == 0); in main()