Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
;
}