Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
dtor10.C
blob: 4307a683b71cd457047b6e4642ddc070757d1195 [
file
] [
log
] [
blame
]
// PR c++/71748
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
public
A
{
virtual
~
B
()
{}
};
template
<
int
>
void
foo
()
{
B
*
b
=
new
B
;
b
->~
A
();
}
int
main
()
{
foo
<
0
>
();
return
0
;
}