1997-08-19 03:34:40 -04:00
|
|
|
// prms-id: 7330
|
|
|
|
#include <stddef.h>
|
|
|
|
int size = 0;
|
|
|
|
|
|
|
|
struct X {
|
|
|
|
int x;
|
1999-04-29 04:33:55 -04:00
|
|
|
void *operator new[](size_t sz) throw() {
|
1997-08-19 03:34:40 -04:00
|
|
|
size = sz;
|
|
|
|
return 0;
|
|
|
|
}
|
1999-04-29 04:33:55 -04:00
|
|
|
void operator delete[] (void *vp) { ::operator delete(vp); }
|
1997-08-19 03:34:40 -04:00
|
|
|
};
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
X (*px) [10];
|
|
|
|
|
|
|
|
px = new X[5][10];
|
|
|
|
|
|
|
|
delete [] px;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|