1// { dg-do compile } 2// Reject [de-]allocation functions declared in a namespace, or 3// declared as static. 4 5namespace A { 6 void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "namespace" } 7 void operator delete(void*); // { dg-error "namespace" } 8} 9 10static void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "static" } 11static void operator delete(void*); // { dg-error "static" } 12