URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bob/] [delete1.C] - Rev 378
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