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