Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:delete

106     void operator delete(void *p) {
111 // expected-note@+2 {{in instantiation of member function 'test6::A<int>::operator delete' requested here}}
117 // expected-note@+2 {{in instantiation of member function 'test6::A<int>::operator delete' requested here}}
195 namespace dnvd { // delete-non-virtual-dtor warning
219 ~simple_ptr() { delete _ptr; } // \
220 // expected-warning {{delete called on non-final 'dnvd::B' that has virtual functions but non-virtual destructor}} \
221 // expected-warning {{delete called on non-final 'dnvd::D' that has virtual functions but non-virtual destructor}}
231 ~simple_ptr2() { delete _ptr; } // expected-warning {{delete called on non-final 'dnvd::B' that has virtual functions but non-virtual destructor}}
252 delete np;
256 delete[] np;
263 delete[] b;
267 delete[] d;
271 delete[] vb;
275 delete[] vd;
283 delete t;
287 delete[] t;
294 delete f;
298 delete vb;
302 delete vb;
306 delete vd;
310 delete vf;
317 delete b; // expected-warning {{delete called on non-final 'dnvd::B' that has virtual functions but non-virtual destructor}}
321 delete b; // expected-warning {{delete called on non-final 'dnvd::B' that has virtual functions but non-virtual destructor}}
325 delete d; // expected-warning {{delete called on non-final 'dnvd::D' that has virtual functions but non-virtual destructor}}