• Home
  • Raw
  • Download

Lines Matching refs:Base

22 struct Base {  struct
27 struct Derived : Base {
30 struct Convertible { operator Base&(); };
31 struct Priv : private Base {}; // expected-note 4 {{declared private here}}
32 struct Mid : Base {};
102 Base base; in test()
105 Base &bar1 = i1 ? base : derived; in test()
106 Base &bar2 = i1 ? derived : base; in test()
107 Base &bar3 = i1 ? base : conv; in test()
108 Base &bar4 = i1 ? conv : base; in test()
120 extern const Base constret(); in test()
123 A a1((i1 ? constret() : Base()).trick()); in test()
124 A a2((i1 ? Base() : constret()).trick()); in test()
128 i1 = (i1 ? Base() : Base()).trick(); in test()
129 i1 = (i1 ? Base() : Base()).trick(); in test()
130 i1 = (i1 ? Base() : Derived()).trick(); in test()
131 i1 = (i1 ? Derived() : Base()).trick(); in test()
133 …(void)(i1 ? Base() : constder()); // expected-error {{incompatible operand types ('Base' and 'cons… in test()
134 …(void)(i1 ? constder() : Base()); // expected-error {{incompatible operand types ('const Derived' … in test()
138 (void)(i1 ? Base() : Priv()); // expected-error{{private base class}} in test()
139 (void)(i1 ? Priv() : Base()); // expected-error{{private base class}} in test()
140 …(void)(i1 ? Base() : Fin()); // expected-error{{ambiguous conversion from derived class 'Fin' to b… in test()
141 …(void)(i1 ? Fin() : Base()); // expected-error{{ambiguous conversion from derived class 'Fin' to b… in test()
173 pfm = i1 ? DFnPtr() : &Base::fn1; in test()
174 pfm = i1 ? &Base::fn1 : DFnPtr(); in test()
184 Base *pb = i1 ? (Base*)0 : (Derived*)0; in test()
185 pb = i1 ? (Derived*)0 : (Base*)0; in test()
186 pfm = i1 ? &Base::fn1 : &Derived::fn2; in test()
187 pfm = i1 ? &Derived::fn2 : &Base::fn1; in test()
389 struct Base {}; struct
390 struct Derived : Base {};
391 Base b;
393 typedef decltype(true ? static_cast<Base&&>(b) : static_cast<Derived&&>(d)) x;
394 typedef Base &&x;