Lines Matching full:delete
24 ::operator delete(x);
26 // Check that the new/delete did not invalidate someGlobal;
114 delete c;
122 // new/delete oparators are subjects of cplusplus.NewDelete.
125 delete &i; // no-warning
128 delete ++p1; // no-warning
131 delete p2;
132 delete p2; // no-warning
137 // unix.Malloc does not know about operators new/delete.
140 delete x; // FIXME: Shoud detect pointer escape and keep silent after 'delete' is modeled properly.
146 operator delete(p); // expected-warning{{Use of memory after it is freed}}
152 delete p; // expected-warning{{Use of memory after it is freed}}
169 delete c;
192 delete n;
195 delete n;
210 // Test modelling destructor call on call to delete
223 delete b; // This results in divide by zero in destructor
235 delete arg;
255 delete &test; // no warn or crash
266 delete p; // Calls the base destructor which aborts, checked below
273 delete v; // no crash/warn
279 delete foo; // should not call destructor, checked below
286 delete s; // should not call destructor, checked below
291 delete test;
301 delete foo; // should assume non-null and call noreturn destructor
307 delete[] fooArray; // should not call destructor, checked below
313 delete[] p; // Calls the base destructor which aborts, checked below
333 delete test;
340 delete test;
349 delete[] a;