Lines Matching full:destructor
111 // Implicit destructor calls.
119 A a; // expected-error {{variable of type 'test3::A' has private destructor}}
123 A local; // expected-error {{variable of type 'test3::A' has private destructor}}
128 // expected-error {{base class 'Base<2>' has private destructor}}
129 class Base3 : virtual Base<3> { public: ~Base3(); }; // expected-error {{base class 'Base<3>' has private destructor}}
131 // These don't cause diagnostics because we don't need the destructor.
135 class Derived2 : // expected-error {{inherited virtual base class 'Base<2>' has private destructor}} \
136 // expected-error {{inherited virtual base class 'Base<3>' has private destructor}}
137 Base<0>, // expected-error {{base class 'Base<0>' has private destructor}}
138 virtual Base<1>, // expected-error {{base class 'Base<1>' has private destructor}}
139 Base2, // expected-error {{base class 'test3::Base2' has private destructor}}
145 class Derived3 : // expected-error 2 {{inherited virtual base class 'Base<2>' has private destructor}} \
146 // expected-error 2 {{inherited virtual base class 'Base<3>' has private destructor}} \
148 Base<0>, // expected-error 2 {{base class 'Base<0>' has private destructor}}
149 virtual Base<1>, // expected-error 2 {{base class 'Base<1>' has private destructor}}
150 Base2, // expected-error 2 {{base class 'test3::Base2' has private destructor}}
154 // expected-note{{implicit destructor}}}
352 foo(); // expected-error {{temporary of type 'test14::A' has private destructor}}
364 const X &xr = Y1(); // expected-error{{temporary of type 'test14::X' has private destructor}}
427 void b() { throw A(); } // expected-error{{temporary of type 'test16::A' has private destructor}} \
428 // expected-error{{exception object of type 'test16::A' has private destructor}}
457 // The destructor is not implicitly referenced here. Contrast to test16,