summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new8.C
blob: 1fefc366ba80a8c45555bd25b1a59d7da10281e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef __SIZE_TYPE__ size_t;

enum Refcount_Type {
  NO_REFCOUNT
};

struct d0_Unknown_Object
{
  void* operator new (size_t, size_t,  Refcount_Type type);
  void operator delete (void*, size_t, Refcount_Type);
  d0_Unknown_Object ();
};

void make ()
{
  new (10, NO_REFCOUNT) d0_Unknown_Object;
}