summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/delete1.C
blob: d8c86a7f55ac5a70044665cec03b22a95921085f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
struct cl_heap_ring{
    void operator delete (void* ptr) { }
    cl_heap_ring ()
    { }
};

struct cl_heap_null_ring : public cl_heap_ring {
    void operator delete (void* ptr) { }
};

void f()
{
  new cl_heap_null_ring();
}