Lines Matching refs:id_
32 int id_; member
33 explicit B(int id) : id_(id) {count++;} in B()
34 B(const B& a) : id_(a.id_) {count++;} in B()
44 int id_; 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()
56 int id_; 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()
68 int id_; member
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()
88 assert(a.id_ == 5); in f1()
89 assert(static_cast<C1&>(a).id_ == 4); in f1()
90 assert(static_cast<C2&>(a).id_ == 3); in f1()
91 assert(static_cast<B&>(a).id_ == 8); in f1()
109 assert(a.id_ == 5); in f2()
110 assert(static_cast<const C1&>(a).id_ == 4); in f2()
111 assert(static_cast<const C2&>(a).id_ == 3); in f2()
112 assert(static_cast<const B&>(a).id_ == 8); in f2()
142 assert(static_cast<const B&>(a).id_ == 8); in f3()
168 assert(c2.id_ == 3); in f4()
194 assert(c1.id_ == 4); in f5()
195 assert(static_cast<const B&>(c1).id_ == 8); in f5()