blob: 728ef4ee7ce30039887ad7320fe7c2f499aa933c [file] [log] [blame]
// PR c++/59238
// { dg-do compile { target c++11 } }
struct A { ~A () = delete; };
A *pa{new A{}};
A *pa2{new A[2]{}};
class B { ~B () = default; };
B *pb{new B{}};
struct E {
~E () = delete;
private:
int x;
};
E *pe{new E{}};
class C { ~C (); };
C *pc{new C{}};
class D { ~D () {} };
D *pd{new D{}};
struct F {
F () = default;
~F () = delete;
};
F *pf{new F{}};
struct G {
G () = default;
~G () = delete;
private:
int x;
};
G *pg{new G{}};