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(); }