Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59226.C
blob: cb0ebbe35f9fa642b6f3ef87d95cbdd670f17a36 [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
A
{
virtual
void
foo
()
{}
};
struct
B
{
virtual
void
foo
()
{}
};
struct
C
:
virtual
A
{};
struct
D
:
virtual
A
,
B
{
virtual
void
foo
()
{}
};
struct
E
:
C
,
D
{
virtual
void
foo
()
{}
};
void
bar
(
A
*
p
)
{
p
->
foo
();
}