aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/delete1.C
blob: 6386fe1883b598f5a8c170e549b04f91167793e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Build don't link:
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();
}