summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/new1.C
blob: 42efbc1721e8fef04b26bd9c0ee6a0ad60b2b65b (plain)
1
2
3
4
5
// { dg-do assemble  }
// GROUPS passed operator-new
typedef __SIZE_TYPE__ size_t;
struct x { int a; void * operator new (size_t, void *); };
struct x * f(void *p) { return new (p) x; }