Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted11.C
blob: cd4e293f65e4834424bf66b53c470622ff611a31 [
file
] [
log
] [
blame
]
// Core issue 901
// { dg-do compile { target c++11 } }
struct
A
{
A
();
~
A
();
void
operator
delete
(
void
*)
=
delete
;
void
operator
delete
[]
(
void
*)
=
delete
;
};
int
main
()
{
A
*
ap
=
new
A
;
ap
=
new
A
[
2
];
}