Sign in
nest-open-source
/
stadia-controller
/
gcc-arm-none-eabi
/
3c699435f69c74a12f5fe18c0181fba6f1dd0479
/
.
/
src
/
gcc
/
libvtv
/
testsuite
/
libvtv.cc
/
derived-main.cpp
blob: 0933ff696210d7da4803977ea304a70cc66bd5dc [
file
] [
log
] [
blame
]
// { dg-do run }
#include
"lib.h"
struct
Derived
:
public
Base
{
virtual
~
Derived
()
{
printf
(
"In Derived destructor\n"
);
}
};
int
main
()
{
Derived
*
d
=
new
Derived
;
Destroy
(
d
);
Base
*
pp
=
GetPrivate
();
delete
pp
;
// Virtual call #2
}