URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bob/] [delete1.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// prms-id: 7330
#include <stddef.h>
int size = 0;
struct X {
int x;
void *operator new[](size_t sz) throw() {
size = sz;
return 0;
}
void operator delete[] (void *vp) { ::operator delete(vp); }
};
int main()
{
X (*px) [10];
px = new X[5][10];
delete [] px;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log