URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [delete7.C] - Rev 305
Go to most recent revision | 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log