Lines Matching full:allocated
14 int *a = new int[5]; // expected-note4 {{allocated with 'new[]' here}}
21 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S()
22 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; d… in ~S()
23 …delete[] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; d… in ~S()
30 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
31 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
35 : b(new int[1]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
36 // expected-note@-1 {{allocated with 'new' here}}
39 : b(new int[i]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
40 // expected-note@-1 {{allocated with 'new' here}}
44 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S2()
47 int *S::d = new int[42]; // expected-note {{allocated with 'new[]' here}}
49 int *a = new int[1]; // expected-note {{allocated with 'new[]' here}} in f()
50 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
51 …delete s->a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
52 …delete s->b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
55 …delete S::d; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
93 …InitList(unsigned c) : p(new derived[c]), p4(nullptr) {} // expected-note {{allocated with 'new[]… in InitList()
94 …InitList(unsigned c, unsigned) : p{new derived[c]}, p4{nullptr} {} // expected-note {{allocated wi… in InitList()
96 …delete p; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~InitList()
109 int *a = new int(5); // expected-note2 {{allocated with 'new' here}} in f()
110 …delete[] a; // expected-warning {{'delete[]' applied to a pointer that was allocated with… in f()
113 int *c{new int}; // expected-note {{allocated with 'new' here}} in f()
114 int *d{new int[1]}; // expected-note2 {{allocated with 'new[]' here}} in f()
115 …delete [ ] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with … in f()
117 …delete d; // expected-warning {{'delete' applied to a pointer that was allocated with 'n… in f()
119 …DELETE_ARRAY(a); // expected-warning {{'delete[]' applied to a pointer that was allocated with … in f()
120 …DELETE(d); // expected-warning {{'delete' applied to a pointer that was allocated with 'n… in f()
141 : a(new int[1]) // expected-note{{allocated with 'new[]' here}} in X()
144 : a(new int[i]) // expected-note{{allocated with 'new[]' here}} in X()