blob: 461b47b5e90a9fe8a406c1370aa0e33e404fa160 [file] [log] [blame]
extern void *operator new(__SIZE_TYPE__); // { dg-message "note" }
template <class T >
struct C
{
void f() {
int* node;
new (&node) int(0); // { dg-error "new" }
}
};
void* operator new(__SIZE_TYPE__, void* __p);
void g() {
C<int> c;
c.f();
}