Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59918.C
blob: b30d33eb369b96c6fab0a037d8e245069ae29f79 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
struct
E
{
~
E
();
virtual
void
f
()
const
;
};
struct
B
:
E
{};
struct
G
:
virtual
B
{};
struct
A
{
virtual
~
A
();
};
struct
J
:
E
{
void
f
()
const
{
E
*
p
=
0
;
p
->
f
();
}
};
J h
;
struct
I
:
A
,
G
,
virtual
B
{};