Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45934.C
blob: f43964107c2e492341a2eaee370af2b773e7ab9b [
file
] [
log
] [
blame
]
/* { dg-do run } */
extern
"C"
void
abort
();
struct
B
*
b
;
struct
B
{
virtual
void
f
()
{
}
~
B
()
{
b
->
f
();
}
};
struct
D
:
public
B
{
virtual
void
f
()
{
abort
();
}
};
int
main
()
{
D d
;
b
=
&
d
;
return
0
;
}