URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [delete7.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
// Test that we call a class-specific vector op delete.
#include <new>
int r = 1;
struct A
{
void operator delete[](void *p) { r = 0; ::operator delete (p); }
};
int main ()
{
A (*p)[2] = new A[2][2];
delete [] p;
return r;
}