Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
net40.C
blob: 2a87a0c0e8a244fdc0dd671c24e1738d0d8db768 [
file
] [
log
] [
blame
]
// { dg-do run }
#include
<stddef.h>
#include
<stdlib.h>
class
toto
{
public
:
void
*
operator
new
(
size_t
t
)
{
abort
();
}
void
operator
delete
(
void
*
p
,
size_t
t
)
{
abort
();
}
};
int
main
()
{
toto
*
p
;
p
=
new
toto
[
5
];
delete
[]
p
;
}