blob: 94932b4b82c261d1c97e3da053d61bc28f28599f [file] [log] [blame]
// PR c++/20040
class X
{
void operator delete(void *p) throw () {} // { dg-message "declared private" }
};
X xa;
int mymain()
{
X *p = new X; // { dg-error "is private" }
return 0;
}