Searched refs:BadDtor (Results 1 – 2 of 2) sorted by relevance
3 class BadDtor { class5 ~BadDtor() = default; // expected-note 9{{here}}9 BadDtor *p = new BadDtor[3]; // expected-error {{private destructor}} in f()11 const BadDtor &dd2 = BadDtor(); // expected-error {{private destructor}} in f()12 BadDtor dd; // expected-error {{private destructor}} in f()17 BadDtor bd; // expected-note {{inaccessible destructor}}20 struct W : BadDtor { // expected-note {{inaccessible destructor}}24 struct X : BadDtor { // expected-error {{private destructor}}28 BadDtor dd; // expected-error {{private destructor}}31 struct Z : virtual BadDtor { // expected-error {{private destructor}}[all …]