Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / lookup / new2.C
blobd468182c18b7307f40b9db80324014e25b8ebe31
1 // { dg-do compile }
2 // Reject [de-]allocation functions declared in a namespace, or
3 //   declared as static.
5 namespace A {
6   void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "namespace" }
7   void  operator delete(void*);                // { dg-error "namespace" }
10 static void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "static" }
11 static void  operator delete(void*);                // { dg-error "static" }