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