Lines Matching defs:Base
16 struct Base {
17 Base() : A(1) {}
18 virtual ~Base() {} // Enforce type to have vtable
22 struct Derived : public Base {
33 Base* ptr = &d;
34 const Base* constPtr = &d;
35 Base* const ptrConst = &d;
36 Base const* const constPtrConst = &d;
40 check_new_derived_without_rtti ptr {Base \*} $testname
41 check_new_derived_without_rtti constPtr {const Base \*} $testname
42 check_new_derived_without_rtti ptrConst {Base \* const} $testname
43 check_new_derived_without_rtti constPtrConst {const Base \* const} \
62 Base& ref = d;
63 const Base& constRef = d;
67 check_new_derived_without_rtti ref {Base \&} $testname
68 check_new_derived_without_rtti constRef {const Base \&} $testname
84 Base* ptr;
85 const Base* constPtr;
86 Base* const ptrConst;
87 Base const* const constPtrConst;
88 S ( Base* v ) :
103 { VAR.public.ptr ptr 1 {Base \*} }
104 { VAR.public.constPtr constPtr 1 {const Base \*} }
105 { VAR.public.ptrConst ptrConst 1 {Base \* const} }
106 { VAR.public.constPtrConst constPtrConst 1 {const Base \* const} }
143 Base& ref;
144 const Base& constRef;
145 S ( Base& v ) :
158 { VAR.public.ref ref 1 {Base \&} }
159 { VAR.public.constRef constRef 1 {const Base \&} }
189 struct MultipleDerived : public First, Base {
200 Base* ptr = &d;
201 Base& ref = d;
205 check_new_derived_without_rtti ptr {Base \*} $testname
206 check_new_derived_without_rtti ref {Base \&} $testname
213 { VAR.Base Base 1 Base }
222 mi_list_varobj_children "VAR.Base" {
223 { VAR.Base.public public 1 }
224 } "list children of ptr.Base (with RTTI) in $testname"
225 mi_list_varobj_children "VAR.Base.public" {
226 { VAR.Base.public.A A 0 int }
227 } "list children of ptr.Base.public (with RTTI) in $testname"
244 Base *ptr = 0;
246 Base* ptr;
247 S ( Base* v ) :
255 mi_create_varobj_checked PTR ptr {Base \*} \
264 { S.public.ptr ptr 1 {Base \*} }
284 mi_varobj_update_with_type_change PTR {Base \*} 1 \
285 "update ptr back to base type in $testname"
288 mi_varobj_update_with_child_type_change S S.public.ptr {Base \*} 1 \
289 "update s.ptr back to base type in $testname"
300 Base *ptr = 0;
302 Base* ptr;
303 S ( Base* v ) :
312 mi_create_varobj_checked PTR ptr {Base \*} \
321 { S.public.ptr ptr 1 {Base \*} }
346 "update ptr back to base type in $testname"
350 "update s back to base type in $testname"